Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175367 - dns_options not implemented
Summary: dns_options not implemented
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Keywords: InVCS
: 196248 (view as bug list)
Depends on:
Reported: 2007-04-20 17:00 UTC by Chris O'Regan
Modified: 2018-08-08 09:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Chris O'Regan 2007-04-20 17:00:24 UTC
I would like to be able to add "options ndots:2" to my /etc/resolv.conf however this file is generated automatically and any manual changes I make to it are lost. The /etc/conf.d/net.examples file suggests that I can get this by using "dns_options", but it doesn't work. After poking around, I found /lib/rcscripts/net/ and discovered that while it makes a reference to "dns_options" it does not do anything with it. Can this feature be implemented? I have to manually modify /etc/resolv.conf after each reboot otherwise.

Reproducible: Always

Steps to Reproduce:
1. Add 'dns_options=( "ndots:2" )' to /etc/conf.d/net
2. /etc/init.d/net.eth1 restart
3. cat /etc/resolv.conf

Actual Results:  
'options ndots:2' is missing from /etc/resolv.conf

Expected Results:  
'options ndots:2' added to /etc/resolv.conf

briscoe ~ # equery list baselayout
[ Searching for package 'baselayout' in all categories among: ]
 * installed packages
[I--] [  ] sys-apps/baselayout-1.12.9-r2 (0)
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-05-03 11:23:06 UTC
Fixed in our svn repo, will appear in baselayout-1.12.11 (if it ever gets released) or baselayout-2.0.0_alpha2
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-05-04 15:35:54 UTC
Fixed in baselayout-2.0.0_alpha2
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-18 09:02:21 UTC
*** Bug 196248 has been marked as a duplicate of this bug. ***
Comment 4 orionbelt2 2017-12-08 15:36:38 UTC
It seems that this bug is back again.

Reproducible: Always

Steps to Reproduce:

1. Added the following line to /etc/conf.d/net :

dns_options="rotate single-request-reopen"

2. /etc/init.d/net.enp2s0 restart

3. grep rotate /etc/resolv.conf  --> The line "rotate single-request-reopen" is missing from /etc/resolv.conf .

However, file /lib/netifrc/net/ (assuming it's the one that does the job?) seems to contain code for processing the "dns_options" line, so i am not sure what's wrong this time...
Comment 5 orionbelt2 2018-08-08 09:37:08 UTC
It looks like my problem was caused by two things:

1) udhcpc doesn't handle options, so i had to install another dhcp client, and

2) options are apparently only applied when no dns request is made.

See for more.