Book Image

DNS in Action

By : CP Books a.s.
Book Image

DNS in Action

By: CP Books a.s.

Overview of this book

The Domain Name System is one of the foundations of the internet. It is the system that allows the translation of human-readable domain names into machines-readable IP addresses and the reverse translation of IP addresses into domain names. This book describes the basic DNS protocol and its extensions; DNS delegation and registration, including for reverse domains; using DNS servers in networks that are not connected to the internet; and using DNS servers on firewall machines. Many detailed examples are used throughout the book to show perform various configuration and administration tasks.
Table of Contents (16 chapters)
DNS in Action
Credits
About the Authors
Preface
Country Codes and RIRs
Index

9.2 Configuring a Root Name Server on a Separate Server (BIND Version 4)


Let’s say you have two name servers for the company.com domain in our closed Intranet: ns1.company.com at IP address 10.1.1.1 and ns2.company.com at IP address 10.2.2.2. And an additional third name server for the root domain (.): ns-root.company.com. at IP address 10.3.3.3.

9.2.1Configuring a Name Server for the Root Domain

In the /etc/named.boot file of the ns-root.company.com server, insert a line declaring that your name server is the primary name server for the root domain "." (dot):

...
primary . file2
...

Note that, there is no line with a cache command.

file2 specifying the root domain will delegate authority over the company.com domain to the ns1.company.com and ns2.company.com name servers:

@ IN SOA ...
IN NS ns1.company.com.
IN NS ns2.company.com.
ns1.company.com. IN A 10.1.1.1
ns2.company.com. IN A 10.2.2.2
company.com IN NS ns1.company.com.
IN NS ns2.company.com.

As mentioned earlier, since you have not inserted...