Ubuntu – How to add DNS suffix in Ubuntu 12.04


I have just installed ubuntu 12.04. And I am a beginner on Linux. So, how can I add the DNS suffix in this OS. Please help..

Best Answer

In the past you did this by modifying /etc/resolv.conf. Now /etc/resolv.conf is managed by resolvconf. So now you do:

  • Create a file named /etc/resolvconf/resolv.conf.d/tail
  • Add the line search mydomain.tld to that file
  • Run sudo resolvconf -u
Related Question