Download Print this page

Cisco Dial NMS Implementation Manual page 95

Cisco systems basic dial nms implementation guide

Advertisement

CNR can use batch files to make large and small-scale changes to the DNS configuration within your
network.
To use the batch-file facility to add and remove entries, follow these steps:
Define the batch file by entering zone commands:
zone the.net. addRR doc-core-02 A 172.21.10.6
zone the.net. addRR doc-core-03 A 172.21.10.7
zone 10.21.172.in-addr.arpa. removeRR 6 PTR unused-6.the.net.
zone 10.21.172.in-addr.arpa. removeRR 7 PTR unused-7.the.net.
zone 10.21.172.in-addr.arpa. addRR 6 PTR doc-core-02.the.net.
zone 10.21.172.in-addr.arpa. addRR 7 PTR doc-core-03.the.net.
server dns reload
The previous batch-file example shows how to add two new device/IP addresses. In addition to adding
two "A" records (lines 1 and 2), remove the "unused" PTR records from the reverse zone (lines 3 and
4) before adding the new "PTR" records, in place of the unused records, to the reverse zone (lines 5 and
6). See line 7 to reload the DNS server.
Run the script by using the -b option:
nrcmd> -b < 172.21.10.batch
The following output appears:
nrcmd>
zone the.net. addRR doc-core-02 A 172.21.10.6
100 Ok
doc-core-02
nrcmd>
zone the.net. addRR doc-core-03 A 172.21.10.7
100 Ok
doc-core-03
nrcmd>
zone 10.21.172.in-addr.arpa. removeRR 6 PTR unused-6.the.net.
100 Ok
removing 6
nrcmd>
zone 10.21.172.in-addr.arpa. removeRR 7 PTR unused-7.the.net.
100 Ok
removing 7
nrcmd>
zone 10.21.172.in-addr.arpa. addRR 6 PTR doc-core-02.the.net.
100 Ok
6
nrcmd>
zone 10.21.172.in-addr.arpa. addRR 7 PTR doc-core-03.the.net.
100 Ok
7
nrcmd>
server dns reload
100 Ok
IN
A
172.21.10.6
IN
A
172.21.10.7
IN
PTR
IN
PTR
IN
PTR
doc-core-02.the.net.
IN
PTR
doc-core-03.the.net.
unused-6.the.net.
unused-7.the.net.

Advertisement

loading