Operating System - HP-UX
1820647 Members
2269 Online
109626 Solutions
New Discussion юеВ

Delegating a Subdomain with reverse lookup

 
SOLVED
Go to solution
Mad_1
Regular Advisor

Delegating a Subdomain with reverse lookup

I would like to ask how to setup a subdomain delegation in a HP-UX DNS primary server (BIND 8.1.2).

I know how to setup delegation of a subdomain to another domain name server. However, I don't know how to delegate a range of IP subnet (resolve with the subdomain) to the same domain name server.

Please help, thanks
2 REPLIES 2
Todd Whitcher
Esteemed Contributor
Solution

Re: Delegating a Subdomain with reverse lookup

Hello,

To Delegate a subdomain of a reverse map zone you add the NS record for the Nameserver you want to delegate to in the zones db file, pretty much the same as the forward mapping but you dont typically need a glue record ( A record for the nameserver )

ex. from Cricket Liu's DNS & BIND Cookbook

Delegate the 1.168.192.in-addr.arpa subdomain to the nameserver ns1.baz.bar. and ns2.foo.example you add these two NS records to the 168.192.in-addr.arpa zone data file.

1.168.192.in-addr.arpa. IN NS ns1.baz.bar.example

1.168.192.in-addr.arpa IN NS ns2.foo.example

If your subnet masks don't fall on Octet boundaries this is a little more complex.

This book has examples

http://www.oreilly.com/catalog/dnsbindckbk/toc.html

The DNS & BIND book by Cricket Liu also has examples.


I found a nice reference for you here if you have to delegate on non-octet boundaries, check out this presentation.

http://www.apnic.net/training/download/2004/20040115-in-dns/6-Reverse-dns.pdf


Mad_1
Regular Advisor

Re: Delegating a Subdomain with reverse lookup

I tried to add "NS" entries in the db. files and the delegation seems work. However, when I perform 'hosts_to_named' to generate db. files from /etc/hosts, those added "NS" entries were gone.

How can I prevent this? Is there any way to configure /etc/hosts to add information about delegation?