Difference between revisions of "Linux command: dig"

From RHS Wiki
Jump to navigation Jump to search
m
Tag: visualeditor
m
Tag: visualeditor
 
Line 9: Line 9:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Trace Domain Delegation Path ===
+
===Trace Domain Delegation Path===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
dig +trace cyberciti.biz
 
dig +trace cyberciti.biz
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Short Answer ===
+
===Short Answer===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
dig +short cyberciti.biz
 
dig +short cyberciti.biz
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== All Records ===
+
===All Records===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
All Records
 
All Records
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Reverse IP Lookup ===
+
===Reverse IP Lookup===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
dig -x 75.126.153.206 +short
 
dig -x 75.126.153.206 +short
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Find Domain SOA Record ===
+
===Find Domain SOA Record===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
dig +nssearch cyberciti.biz
 
dig +nssearch cyberciti.biz
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Find Out TTL Value Using dig ===
+
===Find Out TTL Value Using dig===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
dig +nocmd +noall +answer a cyberciti.biz
 
dig +nocmd +noall +answer a cyberciti.biz
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[Category:Linux Command]]
 +
[[Category:DNS]]

Latest revision as of 09:13, 3 April 2019

Examples

dig @{ns1.example.com} {example.com}
dig @{ns1.example.com} {example.com} {TYPE}
dig cyberciti.biz a
dig cyberciti.biz mx
dig cyberciti.biz ns 
dig cyberciti.biz txt
dig @ns1.nixcraft.net cyberciti.biz a

Trace Domain Delegation Path[edit]

dig +trace cyberciti.biz

Short Answer[edit]

dig +short cyberciti.biz

All Records[edit]

All Records

Reverse IP Lookup[edit]

dig -x 75.126.153.206 +short

Find Domain SOA Record[edit]

dig +nssearch cyberciti.biz

Find Out TTL Value Using dig[edit]

dig +nocmd +noall +answer a cyberciti.biz