Dig command use Daquan (domain name query on Linux)It can be said that the process of translating this document is my re-learning the process of DNS, Dig command can help us learn the principle of DNS, configuration,As well as its query process. The
Dig Introduction:Dig is a tool that queries DNS for information such as NS Records, A records, MX records, and so on in Unix-like command-line mode. Because it has been missingDig man page document, this article right when a Dig use the wizard.Dig's
The dig command is primarily used to query host address information from a DNS domain name server.querying DNS information for a single domain nameThe most typical use of the dig command is to query the information of a single host.$ dig
Dig Command Options and Examples
+ [No] query using TCP or without TCP
+ [No] VC provides options for compatibility with earlier versions. The same role as TCP options. VC stands for "virtual circuit"
+ [No] Ignore ignores the truncated UDP
Dig (Domain information Groper), and Nslookup functions are similar, are DNS query tools1.Dig command FormatDig @dnsserver name QueryType
If you set the DNSServer to be a domain name, first use the default up-to-connect DNS server to query
1. install the software packages dig and nslookup. Centos: # yuminstallbind-utilsDebian: # apt-getupdate # apt-getinstalldnsutils set the dns server IP address in/etc/resolv. conf before querying. II. usage
1. install the software packageInstall
1. view the Host IP address resolved by the DNS host name
Host CommandPurposeResolve a host name to an Internet address or an Internet address to a host name.SyntaxHost [-n [-a] [-c Class] [-d] [-r] [-t Type] [-v] [-w] [-z] Hostname | Address
Dig Dig [option] FQDN [@server] @server: If you do not use/etc/resolv.conf as the DNS query, you can fill in the other IP Options: A number of relevant parameters, mainly +trace,-t type and-X are the most commonly used +trace: It's from. Start
Common options:-B: When the host has multiple IP addresses, specify which IP address to use to send Domain name query requests to the domain name server;-f-P: Specifies the port number used by the domain name server;-t-X: Perform reverse domain name
Brief introduction
In my opinion, the only DNS solution based on bind consists of two parts: geolocation and dynamic record. The domestic industry for smart DNS positioning is nothing more than these two points, but I understand that smart DNS is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.