Local resolution of some parent domain hosts

Kerney, Stephen A stephen.a.kerney at usa-spaceops.com
Fri Apr 20 20:58:18 UTC 2007


Bowie,

Until now, my DNS server authoritative for the a.b.c domain has always gone to the b.c domain servers for host.b.c name resolution.

I now have a requirement to resolve names using my a.b.c domain server to IP-address-internal for host.b.c queries while the b.c domain server resolves the
same host.b.c query to IP-address-external.

If I create a single b.c db file I found I'm no longer able to resolve any hosts on the b.c domain that aren't in my b.c db file.

Steve

-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org]On
Behalf Of Bowie Bailey
Sent: Friday, April 20, 2007 11:45 AM
To: bind-users at isc.org
Subject: RE: Local resolution of some parent domain hosts


Kerney, Stephen A wrote:
> Rather than create a name alias1.host1.b.c I was hoping to create the
> name alias1.b.c and have that name resolve to the same IP address as
> host1.b.c  
> 
> For example, DNS has been configured for some time such that queries
> to host1.a.b.c returns an IP address such as 10.0.1.1. 
> 
> Using your configuration example, queries to host1.b.c now return the
> same IP address of 10.0.1.1. 
> 
> The current challenge:  Our software developers have given me a list
> of 14 host names on the b.c domain they want resolved to the same IP
> address of  
> 10.0.1.1.
> 
> Therefore, queries to my DNS server for the following 15 names must
> all return an IP address of 10.0.1.1: 
> 
> host1.a.b.c
> host1.b.c
> alias1.b.c
> alias2.b.c
> .
> .
> .
> alias12.b.c
> alias13.b.c
> 
> Must I have 15 db files, one to cover my a.b.c names and 14 for the
> 14 b.c names? 

Why not just have a single b.c db file with 14 entries?  You could put
the 15 a.b.c entries in that file as well, or create a second a.b.c db
file for them.

The single file would look something like this (after the SOA header):

    host1     IN   A   10.0.1.1
    host2     IN   A   10.0.1.1
    host1.a   IN   A   10.0.1.1

Or you could use cnames:

    host1     IN   A     10.0.1.1
    host1.a   IN   CNAME host1

-- 
Bowie




More information about the bind-users mailing list