How To Setup Static DNS Servers in Ubuntu

To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to open dhclient.conf file.

sudo gedit /etc/dhcp/dhclient.conf
Then change the line highlighted to:
prepend domain-name-servers x.x.x.x, y.y.y.y;

Replace xx and yy with the primary and secondary DNS server addresses. Separate each address with a comma. Save the file and you’re done.

i COPY AND PASTE this from here for my own knowledge.

No comments:

Post a Comment

Find Us On Facebook

Related Posts Plugin for WordPress, Blogger... Linux Directory