G
Guest
Has anyone used the dnscmd command to do a recordadd to a domain that is part
of your root zone? I want to script the process for adding DNS records to
some child domains contained in the forward lookup zone. For example:
Parent domain and forward look up zone: test.lab
Child domain: child.test.lab
DNS server hostname: dnsserver
Test.lab system: NewBox
Child.test.lab system: ChildNewBox
Now if I want to use dnscmd to add a record to test.lab the command is easy:
C:\dnscmd dnsserver /recordadd test.lab NewBox A 10.0.0.101
This command completes succesffully and I can find the record in the zone.
But when I try the following command to add a record to the domain "child"
in the zone "test.lab":
C:\dnscmd dnsserver /recordadd child.test.lab ChildNewBox A 10.0.0.102
I receive the follwoing error message:
Command failed: DNS_ERROR_ZONE_DOES_NOT_EXIST 9601 (00002581)
Now this makes sense. There is no zone child.test.lab, but I can't find an
example of how to add the record to the domain "child" that is part of the
zone "test.lab" or even how to list the records within the domains that are
within the zone.
Any ideas? Much thanks in advance!
of your root zone? I want to script the process for adding DNS records to
some child domains contained in the forward lookup zone. For example:
Parent domain and forward look up zone: test.lab
Child domain: child.test.lab
DNS server hostname: dnsserver
Test.lab system: NewBox
Child.test.lab system: ChildNewBox
Now if I want to use dnscmd to add a record to test.lab the command is easy:
C:\dnscmd dnsserver /recordadd test.lab NewBox A 10.0.0.101
This command completes succesffully and I can find the record in the zone.
But when I try the following command to add a record to the domain "child"
in the zone "test.lab":
C:\dnscmd dnsserver /recordadd child.test.lab ChildNewBox A 10.0.0.102
I receive the follwoing error message:
Command failed: DNS_ERROR_ZONE_DOES_NOT_EXIST 9601 (00002581)
Now this makes sense. There is no zone child.test.lab, but I can't find an
example of how to add the record to the domain "child" that is part of the
zone "test.lab" or even how to list the records within the domains that are
within the zone.
Any ideas? Much thanks in advance!