-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BitwiseOperator
committed
Jul 15, 2024
1 parent
fc63ac9
commit 3e7d376
Showing
3 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 47 additions & 3 deletions
50
docs/Knowledge_Base/OS/Linux/Debian/Commands/DNS_Lookup.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,54 @@ | ||
!!! info "" | ||
|
||
### DNS Lookup | ||
### Installing dnsutils | ||
|
||
```bash | ||
dig -v | ||
sudo apt-get install dnsutils | ||
``` | ||
|
||
### dnsutils Tools | ||
|
||
When installing dnsutils, you will be able to use the following commands | ||
|
||
- 'dig' | ||
- 'nslookup' | ||
- 'nsupdate' | ||
|
||
### Command syntax | ||
|
||
#### dig | ||
|
||
```bash | ||
dig [server] [name] [type] | ||
dig [@server] [-b address] [-c class] [-f filename] [-k filename] [-m] [-p port#] [-t type] [-x addr] [-y name:key] [-4] [-6] [name] [type] [class] [queryopt...] | ||
|
||
dig example.com | ||
dig example.com MX | ||
dig example.com SOA | ||
dig example.com TTL | ||
dig example.com ANY +noall +answer | ||
|
||
#reverse lookup | ||
dig -x 1.1.1.1 +short | ||
|
||
#dig [server] [name] [type] | ||
``` | ||
|
||
#### nslookup | ||
|
||
```bash | ||
nslookup [-option] [name | -] [server] | ||
|
||
nslookup example.com | ||
nslookup -query=mx example.com | ||
nslookup -type=soa example.com | ||
nslookup -type=any example.com | ||
nslookup -timeout=10 example.com | ||
nslookup -port 56 example.com | ||
nslookup -debug example.com | ||
``` | ||
|
||
#### nsupdate | ||
|
||
```bash | ||
nsupdate [-d] [[-y keyname:secret] | [-k keyfile]] [-t timeout] [-u udptimeout] [-r udpretries] [-v] [filename] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters