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.1 Configuring a Root Name Server on the Same Server (BIND Version 4)


Let’s say you have two name servers in your closed intranet: ns1.company.com at IP address 10.1.1.1 and ns2.company.com at IP address 10.2.2.2. Configure both name servers as root name servers and, at the same time, as name servers for the company.com domain.

You will need to insert a line in the /etc/named.boot file of the ns1.company.com and ns2.company.com servers. This line will declare that your name server is also the primary name server for the root domain ‘.’:

...
primary company.com file1
primary . file2
...

Note that, there is no line containing the cache command.

It is important to check file2, which specifies the root domain:

@ IN SOA ...
IN NS ns1.company.com.
IN NS ns2.company.com.
company.com 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.1.1.1

In this file, we have not inserted any NS resource record for other domains than company.com. That is why there...