Cisco Cisco Prime Network Registrar 8.1 Technical References

Page of 316
ImportDNS 
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide 
30 
$INCHOME/etc/cli/ImportDNS.cmd -f db.192.168.0 -s dns1.sw.cisco.com  
-z 0.168.192.in-addr.arpa 
Usage Example 3 
This example imports the resource records declared in the zone file 
db.hr.cisco.com.  The 
domain 
hr.cisco.com
 is created if it does not already exist. The domain has its 
delegated, managed, and reverse properties set. The domain is assigned to the “internal” 
DomainType.  The zone 
hr.cisco.com
 is created and associated with the server 
dns1.sw.cisco.com
$INCHOME/etc/cli/ImportDNS.cmd -f db.hr.cisco.com -s dns1.sw.cisco.com  
-z hr.cisco.com –t internal 
Usage Example 4 
This example creates master zones linked to the server 
dns1.sw.cisco.com
 using the 
zone data contained within the zone files that are referenced by the master zone 
declarations within the 
named.conf file, specifically the files db.example and db.0.168.192.  The 
following domains are created, if they did not already exist: 
com.
,
 example.com.
,
 in-
addr.arpa.
 , and  
0.168.192.in-addr.arpa.
  The domain 
example.com.
 has 14 
resource records associated with it, all the ones declared in the 
db.example file except the 
SOA record, and the NS record.  The data from the SOA record update the domain 
example.com
 with the values from its rdata field. The domain 
example.com.
 is marked 
as delegated and managed. The domains 
com.
 and 
example.com
 are assigned to the 
“external” DomainType.  The domains
 in-addr.arpa
 and  
0.168.192.in-
addr.arpa.
 are assigned to the “Default” DomainType.  The domain 
0.168.192.in-
addr.arpa. 
has associated with it the resource records from the 
db.0.168.192 file except 
the SOA and NS records. Its properties are also updated with the information from the 
SOA record for the zone, and are marked as delegated and managed. It is also marked as 
reverse. 
$INCHOME/etc/cli/ImportDNS.cmd -f /etc/named.conf -s dns1.sw.cisco.com  
–m “example.com=external” 
Usage Example 5 
This example creates master zones linked to the server 
dns1.sw.cisco.com
 using the 
zone data contained within the zone files that are referenced by the master zone 
declarations within the 
named.conf file, specifically the files db.example and db.0.168.192.  The 
following domains are created: 
com.
example.com.
, and  
0.168.192.in-
addr.arpa.
  The domain 
example.com.
 has 14 resource records associated with it, all 
the ones declared in the 
db.example file except the SOA record, and the NS record.  The data 
from the SOA record updates the domain 
example.com
 with the values from its rdata 
field. The domain 
example.com.
 is marked as delegated and managed. The domain 
0.168.192.in-addr.arpa. 
is associated with it the resource records from the 
db.0.168.192 file except the SOA and NS records. Its properties are also updated with the 
information from the SOA record for the zone, and are marked as delegated and managed. 
It is also marked as reverse.