Linux and Unix DNS Configuration

From SambaWiki
Revision as of 02:29, 25 September 2016 by Mmuehlfeld (talk | contribs) (Mmuehlfeld moved page Linux and Windows DNS Configuration to Linux and Unix DNS Configuration without leaving a redirect: Fix title)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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.