60 likes | 277 Views
USAGE: DnsCmd <ServerName> /RecordDelete <Zone> <OwnerName> <RRType> <RRData> [/f]. <Zone> -- <ZoneName> | RootHints | Cache <ZoneName> -- FQDN of a zone <OwnerName> -- name of node to delete records from - "@" for zone root OR
E N D
USAGE: DnsCmd <ServerName> /RecordDelete <Zone> <OwnerName> <RRType> <RRData> [/f] • <Zone> -- <ZoneName> | RootHints | Cache • <ZoneName> -- FQDN of a zone • <OwnerName> -- name of node to delete records from • - "@" for zone root OR • - FQDN of a node (DNS name with a '.' at the end) OR • - single label for name relative to zone root ) OR • - service name for SRV only (e.g. _ftp._tcp) • <RRType>: <RRData>: • A <IP Address> • NS,CNAME,MB,MD,PTR,MF,MG,MR <HostName> • MX,RT,AFSDB <Preference> <ServerName> • MINFO,RP <MailboxName> <ErrMailboxName> • TXT,X25,HINFO,ISDN <String> [<String>] • SRV <Priority> <Weight> <Port> <HostName> • WKS <Protocol> <IPAddress> <Service> [<Service>]..] • AAAA <IPv6 Address> • ATMA <ATM address> • WINS <MapFlag> <LookupTimeout> • <CacheTimeout> <IPAddress> [<IPAddress>] • WINSR <MapFlag> <LookupTimeout> • <CacheTimeout> <RstDomainName> • /f -- Execute without asking for confirmation • <RRData> not specified • -- delete all records with of specified type
Tip: you can view the RRData format by enumerating the records
USAGE: DnsCmd <ServerName> /RecordAdd <Zone> <NodeName> [/Aging] [<Ttl>] <RRType> <RRData> • <RRType>: <RRData>: • A <IPAddress> • NS,CNAME,MB,MD,PTR,MF,MG,MR <HostName|DomainName> • MX,RT,AFSDB <Preference> <ServerName> • SRV <Priority> <Weight> <Port> <HostName> • SOA <PrimSvr> <Admin> <Serial#>\ • <Refresh> <Retry> <Expire> <MinTTL> • AAAA <Ipv6Address> • TXT,X25,HINFO,ISDN <String> [<String>] • MINFO,RP <MailboxName> <ErrMailboxName> • WKS <Protocol> <IPAddress> <Service> [<Service>]..] • WINS <MapFlag> <LookupTimeout>\ • <CacheTimeout> <IPAddress> [<IPAddress>] • WINSR <MapFlag> <LookupTimeout>\ • <CacheTimeout> <RstDomainName> • <Zone> -- <ZoneName> | /RootHints • <ZoneName> -- FQDN of a zone • <NodeName> -- name of node to add record to • - FQDN of a node (name with a '.' at the end) OR • - node name relative to the ZoneName OR • - "@" for zone root node OR • - service name for SRV only (e.g. _ftp._tcp) • <Ttl> -- TTL for the RR (Default: TTL defined in SOA) • <HostName> -- FQDN of a host • <IPAddress> -- e.g. 255.255.255.255 • <ipv6Address> -- e.g. 1:2:3:4:5:6:7:8 • <Protocol> -- UDP | TCP • <Service> -- e.g. domain, smtp