Set / configure DNS client with resolv.conf
Posted on December 21st, 2007 by linux
DNS client (resolver) configuration file: /etc/resolv.conf
To configure your dns client setting, open /etc/resolve.conf and add entries as follow:
search mysite.com -> (this entry is optional – add this only when you host your own local domain)
nameserver 192.168.1.1 -> (replace ip addresss with your desired dns server – usually your Internet gataway)
You can have more than one nameserver in your resolv.conf but ensure that you list them on separate lines:
nameserver 192.168.1.1
nameserver 10.1.1.1
Filed under: Administration, Networks