Cisco Cisco Email Security Appliance C160 Références techniques
3-63
Cisco AsyncOS 8.5.6 CLI Reference Guide
Chapter 3 The Commands: Reference Examples
DNS
Batch Format
The batch format of the
dig
command can be used to perform all the functions of the traditional CLI
command.
•
Look up a record on a DNS server
•
Do a reverse lookup for given IP address on a DNS server
These are the options available for the
dig
command’s batch format
Example
The following example explicitly specifies a DNS server for the lookup.
dig [options] [@<dns_ip>] [qtype] <hostname>
dig -x <reverse_ip> [options] [@<dns_ip>]
-s <source_ip> Specify the source IP address.
-t Make query over TCP.
-u Make query over UDP (default).
dns_ip - Query the DNS server at this IP address.
qtype - Query type: A, PTR, CNAME, MX, SOA, NS, TXT.
hostname - Record that user want to look up.
reverse_ip - Reverse lookup IP address.
dns_ip - Query the DNS server at this IP address.
mail.com> dig @111.111.111.111 example.com MX
; <<>> DiG 9.4.3-P2 <<>> @111.111.111.111 example.com MX
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18540