Forum Discussion

Leam_53941's avatar
Leam_53941
Icon for Nimbostratus rankNimbostratus
Mar 31, 2011

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:

 

 

THIS IS AN AUTO-GENERATED FILE -- DO NOT EDIT!!!

 

Use the bigpipe shell utility to make changes to the system configuration.

 

For more information, see bigpipe dns help.

 

 

Can't seem to figure out how to get bigpipe to comment out or remove the option line. Thoughts?

 

 

Leam

 

  • 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