I have nameservers and I wanted to delegate subdomains on nameserver A to nameserver X where X is a local workstation name server
example would be: TLD is company.com any queries to host.XXXX.company.com would be delegated to that XXXX's nameserver. X can vary as it would be some sort of 'personal' nameserver.
so i imagine company.com zone file would be like
$ORIGIN company.com. $TTL 6h
@ IN SOA company.com. root.company.com. ( 1 1h 30m 7d 1h) NS ns.company.com. A 10.1.1.1 ;so these names are potential XXXX foo A 10.1.1.3 bear A 10.1.1.2 ns A 10.1.1.1
and XXXX's(or lets say foo.company.com) zone file would be like (this is found in another nameserver, not the same as above)
$ORIGIN foo.company.com. $TTL 6h
@ IN SOA foo.company.com. root.company.com. ( 1 1h 30m 7d 1h) NS ns.foo.company.com. A 10.1.1.3 ns A 10.1.1.3
am i doing this right?
summary is, when someone would access foo.company.com, company.com NS would resolve it
but when lets say i have a host on foo, named 'test' so when someone accesses test.foo.company.com, it goes first to company.com but delegates it to foo.company.com name server and would resolve 'test' there.