ITEM: Y3398L

Howto Add Another Domain To Nameserver



Question:

Howto Add Another Domain To Nameserver


This is the information that needs to be added to the /etc/named.data
file on the primary nameserver in order to recognize another DNS
domain:

Name              TTL          Addr-class Record-type   Data

other.domain.           999999  IN        NS           name.other.domain.  
subnet.ip.in-addr.arpa. 999999  IN        NS           name.other.domain.  
name.other.domain       999999  IN         A           ip.addrees.of.nameserver

Here is an example:

Suppose our domain is texas.com and I want to access dallas.texas.com,
the following lines need to be added to the /etc/named.data file
associated with the texas.com primary nameserver:

dallas.texas.com.         9999999   IN    NS  name.dallas.texas.com.  
110.100.195.in-addr.arpa. 9999999   IN    NS  name.dallas.texas.com.  
name.dallas.texas.com.    9999999   IN    A   195.100.110.1

The  first line specifies the NS entry for host to IP lookups in the
other (dallas.texas.ibm.com) domain. The other domain does not have to
be a parent/ child domain relationship, but it usually is.

The second line is for IP address to hostname (reverse) resolution.
This is a NS (nameserver entry as well). The "name.dallas.texas.com."
is the hostname followed by domainname of the nameserver for that
domain.

The third line is the A record (Address). This defines the IP address
of the nameserver.

In a parent child relationship, the child domain will have lines
similar to these to point to its parent nameserver. So, in the
/etc/named.data file on the nameserver for the dallas.texas.com
domain, if it wants to resolve names in the texas.com domain:

texas.com.                999999   IN   NS    name.texas.com.
100.90.195.in-addr.arpa.  999999   IN   NS    name.texas.com.
name.texas.com.           999999   IN   A     195.90.100.1

It is possible for one nameserve to server multiple IP subnets. If
this is true, there may be multiple in-addr.arpa. NS entries.



Support Line: Howto Add Another Domain To Nameserver ITEM: Y3398L
Dated: August 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:33
Comments or suggestions? Contact us