Cisco Cisco Email Security Appliance C390 기술 참조
3-51
CLI Reference Guide for AsyncOS 9.8 for Cisco Email Security Appliances
Chapter 3 The Commands: Reference Examples
DNS
Batch Command: This command supports a batch format.
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.
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)
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18540
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 3
;; QUESTION SECTION:
;example.com. IN MX
;; ANSWER SECTION:
mexample.com. 10800 IN MX 10 mexample.com.
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.