Difference between revisions of "Linux and Unix DNS Configuration"

m (Mmuehlfeld moved page DNS Configuration Linux to DNS Configuration Linux/Unix: Rename page to fit into new wiki structure)
(Add link to DNS testing page)
Line 1: Line 1:
 +
__TOC__
 +
 +
 +
 
= Introduction =
 
= Introduction =
  
Line 14: Line 18:
 
  nameserver 192.168.1.2
 
  nameserver 192.168.1.2
 
  search samdom.example.com
 
  search samdom.example.com
 +
 +
 +
 +
 +
 +
= Testing DNS resolution =
 +
 +
See [[Testing_DNS_Name_Resolution]].

Revision as of 18:48, 27 August 2015


Introduction

The following describes how to configure Linux clients to use DNS servers. If you provide DNS server addresses via DHCP to your clients, configure your DHCP server to ship the address/es of your DNS server/s instead. For static configuration, continue reading.



General configuration (/etc/resolv.conf)

Edit your /etc/resolv.conf and add a „nameserver“ entry for each DNS server and your search domain:

nameserver 192.168.1.1
nameserver 192.168.1.2
search samdom.example.com



Testing DNS resolution

See Testing_DNS_Name_Resolution.