[Bug 1029361] Re: resolv.conf 'attempts' option has no effect
Thomas Hood
1029361 at bugs.launchpad.net
Wed Jan 30 09:49:54 UTC 2013
The code is there (in 2.17-0ubuntu1):
if (!strncmp(cp, "attempts:", sizeof("attempts:") - 1)){
i = atoi(cp + sizeof("attempts:") - 1);
if (i <= RES_MAXRETRY)
statp->retry = i;
else
statp->retry = RES_MAXRETRY;
for (try = 0; try < statp->retry; try++) {
for (ns = 0; ns < MAXNS; ns++)
If you set "attempts:1" it should only run through the nameserver list
once instead of the default, twice.
** Changed in: eglibc (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1029361
Title:
resolv.conf 'attempts' option has no effect
Status in “eglibc” package in Ubuntu:
Incomplete
Bug description:
From man(8) resolvconf:
/etc/resolvconf/resolv.conf.d/tail
File to be appended to the dynamically generated resolver con‐
figuration file. To append nothing, make this an empty file.
This file is a good place to put a resolver options line if one
is needed, e.g.,
options inet6
I tried to stick in some options to influence the behavior when my 12.04 system has no network connectivity:
Looking at man(5) resolv.conf, I added this to
/etc/resolvconf/resolv.conf.d/tail:
options timeout:2 attempts:1
After reloading the network, I can see both of these options in /etc/resolv.conf:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 2001:610:1:800a:192:87:106:106
nameserver 2001:610:188:140:145:100:188:188
search terena.org
options timeout:2 attempts:1
The configured timeout seems to work, but the 'attempts' doesn't.
Also putting in those values on their own on a single has the same
result: 'timeout' value gets picked up, 'attempts' doesn't.
FYI /etc/network/interfaces looks like this:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.87.30.17
netmask 255.255.255.192
gateway 192.87.30.1
# IPv6 static address
iface eth0 inet6 static
address 2001:610:148:dead::666
netmask 64
gateway 2001:610:148:dead::1
autoconf 0
privext 0
accept_ra 0
dns-search terena.org
dns-domain terena.org
dns-nameservers 2001:610:1:800a:192:87:106:106 2001:610:188:140:145:100:188:188
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1029361/+subscriptions
More information about the foundations-bugs
mailing list