Skip to content

Commit

Permalink
added Dig command
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyloris committed Mar 8, 2024
1 parent fffb845 commit edbe5a7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mergeFiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Merge MD Files
run: |
# Define the order of markdown files to merge
files_to_merge=("index.md", "navigation.md", "files.md", "ssh.md", "scp.md", "sed.md", "grep.md", "searchingFiles.md", "netstat.md", "lsof.md", "curl.md", "wget.md", "redirection.md", "process_substitution.md")
files_to_merge=("index.md", "navigation.md", "files.md", "ssh.md", "scp.md", "sed.md", "grep.md", "searchingFiles.md", "netstat.md", "lsof.md", "curl.md", "wget.md", "dig.md", "redirection.md", "process_substitution.md")
# remove existing contents readme
echo '' > README.md
# Merge files in the specified order
Expand Down
20 changes: 20 additions & 0 deletions dig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Dig Command
> This command is used to find DNS records.
```shell
# command format
dig @<dns_ip> <domain> <record_type>

# find A(ipv4) record of facebook.com
dig facebook.com A
# find AAAA(ipv6) record of google.com from cloudflare dns
dig @1.1.1.1 facebook.com AAAA

# types of records
# - A > ipv4
# - AAAA > ipv6
# - CNAME > canonical names
# - MX > mail servers
# - SOA > Start of Authority
# - TXT > TXT records
```
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
10. [Curl Byte](#curl-command)
11. [Wget Byte](#wget-command)
12. [Tcpdump Byte](#TCPDUMP)
13. [Dig Byte](#DIG)
13. [Dig Byte](#dig-command)
14. [Iptables Byte](#IPTABLES)
15. [Ufw Byte](#UFW)
16. [Ipaddr Byte](#IPADDR)
Expand Down

0 comments on commit edbe5a7

Please sign in to comment.