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
In the domain name resolution process, some users like me, always feel that the takeover status from X to √ wait too long.For example, in the Cloudxns, see the following Red Cross question the Lord always has a thing to do not do always wait to see
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
In general, there are two options for querying domain name resolution in Linux, Nslookup or dig, and I think dig more convenient to use.If it is under Debian, you can use the dig command as long as you install the Dnsutils package.The most basic way
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
DNS resolution is generally authorized more than two, to prevent a single point of failure.For example, Aquan's study domain name www.aslibra.com, authorized twoNs.aslibra.com and ns2.aslibra.com, what if a single point of failure?Trace Check the
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
DNS is one of the core Internet protocols. Whether it's surfing the web or programming, you need to know a little bit about it.This article describes in detail The principle of DNS and how to use the tool software to observe its operation. My goal
Dig command
Function descriptionDig and Nslookup, as well as the Domain name Query tool, is used to test the domain Name system is working properly. These two commands are all under the Bind-utils package, dig use is more convenient than
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.