Cisco Cisco Prime Network Registrar 8.1 Technical References
ImportDNS
Cisco Prime Network Registrar IPAM 8.1.1 CLI and API Guide
25
ImportDNS
Overview
The
ImportDNS
CLI allows the user to import the contents of a DNS zone file, or the
zone files referenced by master zones declared in an ISC BIND 8.x and newer
named.conf
file.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.ipcontrol.cli.dnsimport.DNSImport
–f <file name> -s <server> [-v <view>] [-z <zone>] [-l] [-t <domainType>]
[-m <view/zone=domainType, … >] [-n] [-2 None|ZoneOnly|ZoneAndRR] [-c container]
–f <file name> -s <server> [-v <view>] [-z <zone>] [-l] [-t <domainType>]
[-m <view/zone=domainType, … >] [-n] [-2 None|ZoneOnly|ZoneAndRR] [-c container]
Via command script (Unix)
$INCHOME/etc/cli/ImportDNS.sh -f <file name> -s <server> [-v <view>] [-z <zone>] [-l]
[-t <domainType>] [-m <view/zone=domainType, … >] [-n] [-2 None|ZoneOnly|ZoneAndRR]
[-c container]
[-t <domainType>] [-m <view/zone=domainType, … >] [-n] [-2 None|ZoneOnly|ZoneAndRR]
[-c container]
Via command script (Windows) from the %INCHOME%/etc/cli directory
ImportDNS.cmd -f <file name> -s <server> [-v <view>] [-z <zone>] [-l] [-t <domainType>]
[-m <view/zone=domainType, … >] [-n] [-2 None|ZoneOnly|ZoneAndRR] [-c container]
[-m <view/zone=domainType, … >] [-n] [-2 None|ZoneOnly|ZoneAndRR] [-c container]
Parameters
Parameter
Required
Description
-f <file name>
Yes
File name containing data to import. If the -z parameter is not
supplied, the file is assumed to be a ISC BIND 8.x or newer
configuration file. Otherwise it is assumed to be a ISC DNS
zone file.
-s <server>
Yes
The name of the DNS network service as defined in Cisco
Prime Network Registrar IPAM to import the zone data into.
-v <view>
No
The name of the view in which new domains should be created.
If supplied the view must exist. If not supplied new domains
will be created in the view named 'Default.'
-z <zone>
No
The name of the zone. Must be supplied when importing a
single zone file. See -f.
-l
No
Import “flat” zone. The domain hierarchy will be created to
support the domain in the SOA, but any other sub-domains
found within the zone will not be created as separate domains.
-t
No
The name of the DomainType to assign to the imported
domain(s). If not specified, then the Default DomainType is
used.