Specifying an authoritative nameserver using BIND
Posted on 2007-04-06
I'm having trouble configuring a nameserver which delegates to other authoritative nameservers for certain domain names.
For example, my machine is ns.example.com (it's IP address is 22.214.171.124)
foobar.com was registered with me, so DNS requests for anything.foobar.bar come to ns.example.com, but foobar.com has it's own nameserver (ns.foobar.com, IP: 456.456.456.456).
How do I specify on ns.example.com that ns.foobar.com is authoritative for foobar.com?
The zone file that I currrently have is below:
example.com. IN SOA ns.example.com. admin.example.com. (
example.com. IN NS ns.example.com.
ns.registrar.com. IN A 126.96.36.199
foobar.com. IN NS ns.foobar.com.
ns.foobar.com. IN A 456.456.456.456
The problem seems to be that ns.example.com never refers lookups for foobar.com to ns.foobar.com. It goes to it's forwarders instead.
It doesn't seem like this should be a difficult thing to do. What am I doing wrong?