Showing posts with label cnr. Show all posts
Showing posts with label cnr. Show all posts

Friday, 11 May 2012

Cisco Network Registrar via the CLI

Can't get the GUI running then use the command line.
/export1/nwreg2/usrbin/nrcmd 
List the zones available:
nrcmd> zone list 
List the records in the knon.dtv zone:
nrcmd> zone knon.dtv listrr 
List the records in a reverse lookup zone:
nrcmd> zone 10.in-addr.arpa listrr 
This example adds myhost.knon.dtv / 10.2.3.4.
Add the hostname to the knon.dtv zone:
nrcmd> zone knon.dtv. addhost myhost 10.2.3.4 
Add the corresponding PTR record (done automatically with the GUI):
nrcmd> zone 10.in-addr.arpa. addrr 4.3.2 PTR myhost.knon.dtv
Tip: To remove resource records
nrcmd> zone 10.in-addr.arpa. removerr 4.3.2.10.in-addr.arpa

Save your records & reload the DNS to activate:
nrcmd> save
nrcmd> dns reload
To force the secondary DNS to update the zone with your new records, log onto it and execute:
nrcmd> zone knon.dtv forceXfer secondary
nrcmd> zone 10.in-addr.arpa forceXfer secondary
 Don't forget to refresh the secondary DNS caches to pick up the new records:
rndc reload lang.dtv
rndc reload 10.in-addr.arpa