How to Edit resolv.conf Permanently

Edit this file:

# vim /etc/dhcp3/dhclient.conf

To append a search domain, add this to the file:

append domain-name " mycrazydomain.com";

…which will allow your machine to search *.mycrazydomain.com.

Note the initial space within the double quotes.

Then run:

# /sbin/dhclient

Your /etc/resolv.conf file should now look like this:

search [whatever else was previously here] mycrazydomain.com

This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>