Linux and Unix DNS Configuration: Difference between revisions

From SambaWiki
m (Added tags + a information about NetworkManager)
(Minor text updates)
Line 5: Line 5:
= Introduction =
= Introduction =


Active Directory (AD) uses DNS in the background, to locate other DCs and services, such as Kerberos. Thus AD domain members and servers most be able to resolve the AD DNS zones.
The following describes how to manually configure Linux clients to use DNS servers.


If you are running a DHCP server providing DNS settings to your client computers, configure your DHCP server to send the IP addresses of your DNS servers.
The following describes how to manually configure Linux clients to use DNS servers. If you are running a DHCP server providing DNS settings to your client computers, configure your DHCP server to send the IP addresses of your DNS servers.




Line 15: Line 15:
= Configuring the /etc/resolv.conf =
= Configuring the /etc/resolv.conf =


Edit your <code>/etc/resolv.conf</code>, add a <code>nameserver</code> entry for each DNS server and your <code>search</code> domain:
Set the DNS server IP and AD DNS domain in your <code>/etc/resolv.conf</code>. For example:


nameserver 192.168.1.1
nameserver 10.99.0.1
nameserver 192.168.1.2
search samdom.example.com
search samdom.example.com


Some utilities, such as NetworkManager can overwrite manual changes in that file. Consult your distribution's documentation for information about how to configure name resolution permanently.
Some utilities, such as NetworkManager can overwrite manual changes in that file. See your distribution's documentation for information about how to configure name resolution permanently.





Revision as of 17:36, 6 December 2016


Introduction

Active Directory (AD) uses DNS in the background, to locate other DCs and services, such as Kerberos. Thus AD domain members and servers most be able to resolve the AD DNS zones.

The following describes how to manually configure Linux clients to use DNS servers. If you are running a DHCP server providing DNS settings to your client computers, configure your DHCP server to send the IP addresses of your DNS servers.



Configuring the /etc/resolv.conf

Set the DNS server IP and AD DNS domain in your /etc/resolv.conf. For example:

nameserver 10.99.0.1
search samdom.example.com

Some utilities, such as NetworkManager can overwrite manual changes in that file. See your distribution's documentation for information about how to configure name resolution permanently.



Testing DNS resolution

See Testing_the_DNS_Name_Resolution.