Configuring Linux and Windows Clients to Use Your Caching DNS Server

Your caching server is ready to go to work—how you do tell your Linux and Windows clients how to find it?

If your clients are served by DHCP, you need to edit your DHCP configuration file to point to your new name server.


Linux hosts with static IP addresses that are not served by DHCP configure their name servers in /etc/resolv.conf.

In this example, your name server is at, so all you do is edit /etc/resolv.conf:


The resolver queries the entries in order, so make this the first one if you have others. Typically, your ISP will list a primary and a secondary name server in your account information, so you can list these next:




On Windows hosts with static IP addresses, find the menu for configuring Internet Protocol (TCP/IP) properties. In Windows 95/98/ME, go to Control Panel -> Network -> TCP/IP -> Properties. Go to the DNS Configuration tab, and there you are.

In Windows NT/2000/XP, go to Control Panel -> Network Connections. Right-click Local Area Connection, then select Internet Protocol (TCP/IP) -> Properties.

That’s pretty much all you have to do; a DNS cache is low-maintenance. You may enter up to three name servers on client machines.

Make sure you do not give the entire Internet access to your caching server! This is a big security hole; plus, there’s no reason for you to provide caching for the masses.

Windows 2000/XP comes with its own built-in DNS cache. You didn’t know it was there, did you. You can view the contents of the cache with this command:

C:\> ipconfig /displaydns

To flush the cache, use:

C:\> ipconfig /flushdns

Flushing the cache is a quick way to get rid of stale data, such as when you change a server’s IP address.