Mutlple DNS adress records; just one used

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
hro
Newbie
Newbie
Posts: 1
Joined: December 15th, 2010, 3:17 pm

Mutlple DNS adress records; just one used

Post by hro »

I sometimes have problems that connections to one of my news-servers stall. The news-server status in Connections goes to connection refused in this case.

I found out that when a news server has multiple IP-adresses, one failing server will not trigger a failover to another IP-adress; the entry on DNS seems to keep the failing address, not retrying with another IP.

I have configure the IPv6 newsserver reader.ipv6.xsnews.nl, that has 4 IP-adresses:

reader.ipv6.xsnews.nl. 5321 IN AAAA 2001:67c:174:101::4
reader.ipv6.xsnews.nl. 5321 IN AAAA 2001:67c:174:101::5
reader.ipv6.xsnews.nl. 5321 IN AAAA 2001:67c:174:101::3
reader.ipv6.xsnews.nl. 5321 IN AAAA 2001:67c:174:101::2

I added the all the IP-adresses to the server list, and three of them are okay, one is failing. For some reason the SABNZBd connection on DNS picks the failing server, and stays on that choice for quite some hours.

reader.ipv6.xsnews.nl:119: Failed to connect: (110, '[Errno 111] Connection refused') 1@reader.ipv6.xsnews.nl:119
2001:67c:174:101::5:119: 1  Verbinding #1 -> part14of17.
2001:67c:174:101::4:119: Failed to connect: (110, '[Errno 111] Connection refused') 1@2001:67c:174:101::4:119
2001:67c:174:101::3:119: 1 Verbinding #1 -> part9of17
2001:67c:174:101::2:119: 1 Verbinding #1 -> part13of17

I would expect the server connection on DNS (reader.ipv6.xsnews.nl) to retry on another IP.

Version: 0.5.4
OS: Ubuntu 10.10
Install-type: python source
Skin (if applicable): Default
Firewall Software: None
Are you using IPV6? yes
Is the issue reproducible? yes
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Mutlple DNS adress records; just one used

Post by shypike »

So far we don't support servers that publish multiple IP's per DNS name.
SABnzbd just picks the first one.
Few servers use this poor man's method of load balancing.
Post Reply