search xxxxx
where xxxxx is the search domain to be added to resolv.conf.
After make that change, you will need to restart the networking services.
systemctl restart networking
The following procedure does not work for ubuntu 16.04.
You will need to edit this file with your favorite editor:
sudo nano /etc/dhcp/dhclient.conf
Once in file, you should see a commented line with the word
supersede
next to it:#supersede domain-name "...."
Uncomment that line, substitute the name supersede
for append
, then add the domain names you wish to search (follow the example below and leave a space after the first "
):append domain-name " ubuntu.com ubuntu.net test.ubunut.com";
If you just want to use complete different search domain, then just leave the
word supersede, only replace the domain names.
supersede domain-name " fabric.com whatever.io"
No comments:
Post a Comment