Overriding a couple of entries

Barry Margolin barmar at bbnplanet.com
Tue Apr 4 14:50:56 UTC 2000


In article <200004040223.TAA10545 at berend-pc.growthnetworks.com>,
Berend Ozceri <berend at growthnetworks.com> wrote:
>I have a seemingly easy problem, but I have been unable to dig up enough 
>documentation to direct me in the right direction. I would like to change 
>the configuration of our DNS server a little bit to have it also 
>authoritatively respond (internally only) for a couple of host names in a 
>different domain. I'd like all other names within that other domain to be 
>queried upstream as normal.
>
>For example, let's say the other domain is foo.com. I'd like to set-up a 
>couple of static mappings like:
>
>machine1.foo.com -> 192.168.1.140
>machine2.foo.com -> 192.168.1.141
>machine3.foo.com -> 192.168.1.142
>
>such that those couple of machines resolve locally (they are kind of 
>mirrored) to our internal network, but I want everything else that is 
>*.foo.com to be forwarded up the normal chain of lookups.

In named.conf:

zone "machine1.foo.com" {
  type master;
  file "db.machine1";
};
repeat this for machine2 and machine3.

In db.machine1:

@ IN SOA ...
  IN NS ...
  IN A 192.168.1.140

Create similar db.machine2 and db.machine3 files.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list