Using a different domain name as the DNS server for a domain

Chris Buxton cbuxton at menandmice.com
Tue Dec 1 17:35:08 UTC 2009


You can create the NS record as you have described (type = NS, not A), but remember to put a dot on the end:

birimgrup.com.  in  NS  ns1.optiplex-networks.com.

This is quite common. Here are some real-world examples:

com.			IN	NS	a.gtld-servers.net.

menandmice.com.		IN	NS	ns0.c.is.

As for reverse records, these are indexed by the IP address, not be the domain name on the right hand side. Your PTR records will go in the reverse zone you already have.

Chris Buxton
Professional Services
Men & Mice

On Dec 1, 2009, at 9:11 AM, Kaya Saman wrote:

> Hi,
> 
> I'm wondering if it's possible in Bind like my domain providers DNS servers to use a different domain as the name server ns record for another domain??
> 
> Excuse the horrific explanation I will try to describe what I mean:
> 
> I am about to start hosting a domain called birimgrup.com in my network but do not wish to create a sub domain as ns.birimgrup.com;
> 
> instead I would like to use my own domain which is called optiplex-networks.com as the ns server, meaning ns1.optiplex-networks.com:
> 
> as example:
> 
> dig optiplex-networks.com
> 
> ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> optiplex-networks.com
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48891
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
> 
> ;; QUESTION SECTION:
> ;optiplex-networks.com.        IN    A
> 
> ;; ANSWER SECTION:
> optiplex-networks.com.    86400    IN    A    192.168.1.150
> 
> ;; AUTHORITY SECTION:
> optiplex-networks.com.    86400    IN    NS    ns1.optiplex-networks.com.
> optiplex-networks.com.    86400    IN    NS    ns2.optiplex-networks.com.
> 
> ;; ADDITIONAL SECTION:
> ns1.optiplex-networks.com. 86400 IN    A    192.168.1.100
> ns2.optiplex-networks.com. 86400 IN    A    192.168.1.101
> 
> ;; Query time: 21 msec
> ;; SERVER: 192.168.1.100#53(192.168.1.100)
> ;; WHEN: Tue Dec  1 19:03:00 2009
> ;; MSG SIZE  rcvd: 123
> 
> 
> So practically when someone does a dig for birimgrup.com it will come out of ns1.optiplex-networks.com!!
> 
> Can this be done?
> 
> I am assuming that I could create a zone with record:
> 
> birimgrup  in  a  ns1.optiplex-networks.com
> 
> but I am just wondering if it will complain that the data is "out of zone"??
> 
> 
> As a quick addition also I have never dealt with .net .org etc TLD's before when setting up DNS so I'm assuming that for reverse DNS the PTR records will simply go into the 192.168.1.rev file I have setup??
> 
> Many thanks in advance!
> 
> --Kaya
> _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users




More information about the bind-users mailing list