Linux/DNS: Difference between revisions
< Linux
(→dig) |
No edit summary |
||
Line 5: | Line 5: | ||
== dig == | == dig == | ||
* install | |||
<pre>apt install dnsutils</pre> | <pre>apt install dnsutils</pre> | ||
* Basic query | |||
<pre>dig google.com</pre> | |||
* Query all record types | |||
<pre>dig google.com ANY</pre> | |||
* Query specific DNS server | |||
<pre>dig google.de @8.8.8.8 | |||
* Reverse DNS lookup | |||
<pre>dig -x 193.99.144.80</pre> | |||
* Trace DNS path | |||
<pre>dig google.com +trace</pre> | |||
Revision as of 08:48, 8 April 2019
host
nslookup
dig
- install
apt install dnsutils
- Basic query
dig google.com
- Query all record types
dig google.com ANY
- Query specific DNS server
dig google.de @8.8.8.8 * Reverse DNS lookup <pre>dig -x 193.99.144.80
- Trace DNS path
dig google.com +trace