Page 1 of 1

Cannot add via URL

Posted: April 30th, 2013, 8:58 pm
by micko91
Hi,

I'm using sabnzbd on Ubuntu 12.04 (Server) with package 0.7.11-0ubuntu1~jcfp1~precise

I am unable to add .nzb files via URL, however I can upload them and I can download without any problems.

In the console log I get:

Code: Select all

2013-05-01 08:35:09,495::INFO::[urlgrabber:116] Grabbing URL http://www.nzbindex.nl/******.nzb
2013-05-01 08:35:09,496::INFO::[urlgrabber:179] Retry URL http://www.nzbindex.nl/download/******.nzb
My nameserver is set to 8.8.8.8 in /etc/resolv.conf and in /etc/nsswitch.conf I have:

Code: Select all

hosts:          files dns
I can use wget to download the file without any problems, but I still can't add .nzb file via URL in the web interface.

If I put a static host entry in /etc/hosts like so:

Code: Select all

178.20.172.20  www.nzbindex.nl
It then works without any problems whatsoever.

I've tried using TCPDUMP to see what happens when I go to add a URL and my client never seems to make a DNS or HTTP request to the appropriate servers.

I can do nslookups and use apt-get on my machine with no problems, so I don't think it's a DNS issue on my machine.

Can anyone help me out.

Thanks
micko

Re: Cannot add via URL

Posted: May 2nd, 2013, 12:57 pm
by shypike
I cannot reproduce your issue.
However, I can confirm that DNS support in apps sometimes has inconsistencies.
The libraries accompanying programming languages (like Python that we use) have slightly different behaviour than nslookup.
If your patch fixes the issue, stick to that. I don't know how I could fix it in SABnzbd.