Difference between revisions of "Changing nameservers"

From Pulsed Media Wiki
(search line)
 
Line 7: Line 7:
 
  nameserver 8.8.8.8
 
  nameserver 8.8.8.8
 
  nameserver 8.8.4.4
 
  nameserver 8.8.4.4
 +
 +
search line means which domain is searched for that host if specified name is not FQDN. Ie. if you have:
 +
 +
search pulsedmedia.com
 +
 +
and you do '''host servera''' on shell, it will try finding servera.pulsedmedia.com
  
 
[[Category:Dedicated server guides]]
 
[[Category:Dedicated server guides]]
 
[[Category:Guides]]
 
[[Category:Guides]]

Latest revision as of 08:10, 1 September 2011

On most Linux servers the nameservers are in /etc/resolv.conf Edit this file, with for example vim

vim /etc/resolv.conf

Format of the file is nameserver a.b.c.d, example resolv.conf with google dns servers:

nameserver 8.8.8.8
nameserver 8.8.4.4

search line means which domain is searched for that host if specified name is not FQDN. Ie. if you have:

search pulsedmedia.com

and you do host servera on shell, it will try finding servera.pulsedmedia.com