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)
Fixed in our svn repo, will appear in baselayout-1.12.11 (if it ever gets released) or baselayout-2.0.0_alpha2
Fixed in baselayout-2.0.0_alpha2
*** Bug 196248 has been marked as a duplicate of this bug. ***
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...
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.