|Summary:||dns_options not implemented|
|Product:||Gentoo Linux||Reporter:||Chris O'Regan <chris.oregan+gentoo>|
|Component:||[OLD] baselayout||Assignee:||Gentoo's Team for Core System packages <base-system>|
|Package list:||Runtime testing required:||---|
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/system.sh 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) 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) 2007-05-04 15:35:54 UTC
Fixed in baselayout-2.0.0_alpha2
Comment 3 Jakub Moc (RETIRED) 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/system.sh (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 https://forums.gentoo.org/viewtopic-p-8248188.html for more.