Forum Discussion
Leam_53941
Mar 31, 2011Nimbostratus
Removing "option ndots:0 from /etc/resolv.conf?
In /etc/resolv.conf there's a line:
options ndots:0
Unless it's commented out, nslookup doesn't work. However, the file seems to be automaticlly recreated elsewhere:
THI...
hoolio
Apr 29, 2011Cirrostratus
Hi Leam,
Ideally, you'd be able to use 'b dns include' to remove or modify the default value. However this isn't possible due to a bug noted in 227069. As a workaround, you can:
1) remount usr as writeable:
remount -o rw,remount /usr
2) edit the dns.tmpl file's ndots: value:
sed -i s/ndots:0/ndots:1/ /defaults/config/templates/dns.tmpl
3) verify that the edit took place:
grep ndots /defaults/config/templates.dns.tmpl
4) edit /etc/resolv.conf's ndots values by hand or use sed
sed -i s/ndots:0/ndots:1/ /etc/resolv.conf
the system should behave as expected with respect to ndots values now. dns.tmpl handles what
the ndots value will be set to on the next boot, resolv.conf handles the current value.
You can raise the visibility of this bug by opening a case with F5 Support and asking for your request to be attached to the change request.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects