Windows XP Cookbook (Cookbooks)
Problem
You want to configure the DNS settings on a system. Solution
Using a graphical user interface
To configure the DNS suffix, do the following:
To modify the list of DNS servers used during name resolution, configure how unqualified names are resolved, and configure DNS dynamic registration, do the following:
Using a command-line interface
To view the current DNS configuration for all connections on the local system, run this command: > netsh int ip show dns
To make a connection use DHCP-specified DNS settings, use this command: > netsh int ip set dns "<ConnectionName>" dhcp
Here is an example: > netsh int ip set dns "Local Area Connection" dhcp
To make a connection use a specified DNS server for name resolution, use this command: > netsh int ip set dns "Local Area Connection" static <IPAddress> Here is an example: > netsh int ip set dns "Local Area Connection" static 10.0.0.1 This command allows you to specify only one DNS server for name resolution. With the same command, you can also configure whether the connection registers the host's name under the primary DNS suffix or the connection-specific suffix. To register just the primary DNS suffix, append "primary" to the end of the command. To register both, append "both." To register nothing, append "none." Here is an example: > netsh int ip set dns "Local Area Connection" static 10.0.0.1 primary Discussion
With Windows Server 2003 Active Directory, you can set most Windows XP DNS client settings via Group Policy. You can configure the DNS suffix, dynamic updates settings, search list, and DNS servers used for name resolution among many other settings. These settings can be found by navigating the following path of a Group Policy Object: Computer Configuration
See Also
MS KB 178277, "INFO: Setting DNS Domain Suffix Search Order During an Unattended Installation," MS KB 246804, "How to enable or disable dynamic DNS registrations in Windows 2000 and in Windows Server 2003," and MS KB 275553, "How to Configure a Domain Suffix Search List on the Domain Name System Clients" |