MacOS DNS Configuration: Difference between revisions
From SambaWiki
(First version) |
m (Corrected padlock location in window (bottom left not right)) |
||
Line 10: | Line 10: | ||
* Open <code>System Preferences</code>, then click on <code>Network</code>. |
* Open <code>System Preferences</code>, then click on <code>Network</code>. |
||
: macOS security settings may require clicking on the padlock in the bottom |
: macOS security settings may require clicking on the padlock in the bottom left of the window and entering a local administrator account's credentials, before being able to make changes. |
||
* In the left pane, choose the network adapter that is connected to the network running the Active Directory (AD) (Wi-Fi, Ethernet, etc.), then click on the <code>Advanced…</code> button. |
* In the left pane, choose the network adapter that is connected to the network running the Active Directory (AD) (Wi-Fi, Ethernet, etc.), then click on the <code>Advanced…</code> button. |
Latest revision as of 04:14, 1 June 2023
Introduction
Active Directory (AD) uses DNS to locate other Domain Controllers (DC) and services, like Kerberos. Thus, AD domain members and servers must be able to resolve the AD DNS zones.
The following describes how to configure a macOS client manually to use DNS servers. If using DHCP, then configure the DHCP server instead.
Configure System Preferences
- Open
System Preferences
, then click onNetwork
.
- macOS security settings may require clicking on the padlock in the bottom left of the window and entering a local administrator account's credentials, before being able to make changes.
- In the left pane, choose the network adapter that is connected to the network running the Active Directory (AD) (Wi-Fi, Ethernet, etc.), then click on the
Advanced…
button.
- Click on the
DNS
tab.
- In the
DNS Servers:
pane:
- Remove any existing addresses, by clicking on it and then clicking the minus button.
- Add your DNS server by clicking on the plus button and entering the IP address.
- In the
Search Domain:
pane:
- Remove any existing Search Domains
- Add your Search Domain by clicking on the plus button and entering it, for example
samdom.example.com
.
- When finished editing, click
OK
, thenApply
.
- If your security settings initially required you to click on the padlock, click on it again to lock the preferences.
- Close
System Preferences
.
Testing DNS Resolution
To test the DNS configuration, the nslookup
command can be used with the Terminal app on macOS. The instructions on the page Testing the DNS Name Resolution work on macOS.