Jump to content

How to configure a resolver to append multiple domain names to arguments

+ 1
  cricketliu's Photo
Posted Sep 15 2009 11:10 AM

On a BIND resolver, configure a search list by adding a search directive to the resolv.conf file. You can specify up to six domain names as arguments to the search directive, in the order in which you want the resolver to append them. For example, specifying:

search foo.example bar.example

tells your resolver to try appending foo.example to domain name arguments, and if that doesn't produce a real domain name, to try bar.example.

For a Windows resolver, find the resolver configuration window and set the Domain Suffix Search Order, Microsoft's term for the search list. In Windows 2000, for example, you can bring up the resolver configuration window by choosing Start Settings Control Panel Network and Dial-up Connections. Right-click on the name of your network connection, select Properties, then double-click on Internet Protocol (TCP/IP) Properties. Finally, choose Advanced DNS.... Check the box labeled Append these DNS suffixes (in order), and set the search list in the list box below.

The search directive also sets the local domain name to its first argument, so be sure to delete any domain directive in resolv.conf when you add search.

DNS & Bind Cookbook

Learn more about this topic from DNS & Bind Cookbook.

The DNS & BIND Cookbook presents solutions to the many problems faced by network administrators responsible for a name server. This title is an indispensable companion to DNS & BIND, 4th Edition, the definitive guide to the critical task of name server administration. The cookbook contains dozens of code recipes showing solutions to everyday problems, ranging from simple questions, like, "How do I get BIND?" to more advanced topics like providing name service for IPv6 addresses.

See what you'll learn


Tags:
0 Subscribe


0 Replies