Operating System - HP-UX
1824947 Members
3718 Online
109678 Solutions
New Discussion юеВ

DNS from flat network to subnet

 
Fred Martin_1
Valued Contributor

DNS from flat network to subnet

I'm about to create the first subnet on my network, which has been flat so far.

My HP-UX server is the only DNS server. Up until now, it's been the simple case. Resolver looks to DNS first, then the hosts file if needed.

These are the related data files:

/etc/hosts
/etc/named.data/db.applicatorssales
/etc/named.data/db.209.90.236

(excuse the public IP scheme, it's a private network but that's a legacy thing here)

When I create my first subnet, what do the data files look like? I'll still have the same single domain (applicatorssales).

Can the host file contain all subnets, like:

209.90.236.23 host01
209.90.236.24 host02
192.168.10.10 host03

And, I assume I'll need more than one zone file for DNS:

/etc/named.data/db.applicatorssales
/etc/named.data/db.209.90.236
/etc/named.data/db.192.168.10

Would the file db.applicatorssales, contain both networks?

If you can point me to the appropriate pages in the O'Reilly DNS book for this scenario, I'd appreciate it.
fmartin@applicatorssales.com
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: DNS from flat network to subnet

Busin -- What the heck are you talking about? That response makes absolutely no sense in this thread!

Fred -- Sorry for adding to the clutter.

To provide some answer to your question: In our DNS setup, we have one file for our domain name (db.domain) with hosts for multiple subnets in that file.

Then we have db files for each subnet.

So, to answer your question -- Yes, the db.applicatorssales file would contain entries for both networks.

You can generate these when you run your hosts_to_named to (re)gen the files.

hosts_to_named -d applicatorssales.com -n 209.90.236 -n 192.168.10 -o 2400:1200:604800:86400 -t

After that you should see files for both your subnets.
Fred Martin_1
Valued Contributor

Re: DNS from flat network to subnet

Thanks Patrick, that gives me some confidence that I'm heading in the right direction. Any other comments welcome.
fmartin@applicatorssales.com