PDA

View Full Version : [ubuntu] DNS servers



nikibg
July 31st, 2012, 12:06 PM
how to save my dns servers in /etc/resolv.conf file after restart ?

darkod
July 31st, 2012, 12:15 PM
Usually in ubuntu server you don't enter dns servers directly in /etc/resolv.conf, especially in the latest 12.04 LTS version. Instead, you enter them in /etc/network/interfaces adding a line under the main interface:
dns-nameservers x.x.x.x y.y.y.y

So it would be like:
auto eth0
iface eth0 inet static
......
......
dns-nameservers x.x.x.x y.y.y.y

nikibg
July 31st, 2012, 12:25 PM
10x man its work :KS