dns:dig
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dns:dig [2025/02/16 19:43] – [EDNS Opt] bstafford | dns:dig [2026/01/30 16:02] (current) – bstafford | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== DIG ====== | ====== DIG ====== | ||
| ===== Quick Dig ===== | ===== Quick Dig ===== | ||
| - | < | + | < |
| < | < | ||
| ===== Flags ===== | ===== Flags ===== | ||
| Line 53: | Line 53: | ||
| # Remove Lines containing " | # Remove Lines containing " | ||
| # Remove Lines containing " | # Remove Lines containing " | ||
| - | dig +noidnout axfr @$B1TD_SERVER $RPZ_FEED -y $KEY | awk -F " | + | dig +noidnout axfr @$B1TD_SERVER $RPZ_FEED -y $KEY | awk -F " |
| + | # The following version deletes lines starting with the character ' | ||
| + | < | ||
| The reason we include '' | The reason we include '' | ||
| < | < | ||
| Line 60: | Line 62: | ||
| If the RPZ feed is IP based, you can convert the format into IP format with the following. Strip it down to the reverse IP and then use AWK to invert the numbers. | If the RPZ feed is IP based, you can convert the format into IP format with the following. Strip it down to the reverse IP and then use AWK to invert the numbers. | ||
| < | < | ||
| + | |||
| + | A fuller version of the IP conversation is | ||
| + | < | ||
| ===== DIG ===== | ===== DIG ===== | ||
| < | < | ||
| Line 121: | Line 126: | ||
| ===== What Is My IP ===== | ===== What Is My IP ===== | ||
| What is my IP from the CLI with DNS | What is my IP from the CLI with DNS | ||
| + | |||
| + | If you want to find your DNS resolver' | ||
| **CloudFlare** | **CloudFlare** | ||
| < | < | ||
| Strip of the double quotes with awk on Linux | Strip of the double quotes with awk on Linux | ||
| - | < | + | < |
| + | |||
| + | **DNS Crypt** | ||
| + | < | ||
| + | < | ||
| **Google** | **Google** | ||
| < | < | ||
| Line 208: | Line 219: | ||
| < | < | ||
| + | ===== CNAME Recursion ===== | ||
| + | If a query returns a CNAME chain (see below), then if the BIND server that made the query (i.e. forwarded to a recursor) is authoratative or conditionally forwards to a domain in the CNAME chain (e.g. forward privatelink.azurewebsites.net to Azure DNS resolver), then BIND will try and re-resolve using the conditional forwarder/ | ||
| + | < | ||
| + | |||
| + | ; <<>> | ||
| + | ;; global options: +cmd | ||
| + | ;; Got answer: | ||
| + | ;; ->> | ||
| + | ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1 | ||
| + | |||
| + | ;; OPT PSEUDOSECTION: | ||
| + | ; EDNS: version: 0, flags:; udp: 4096 | ||
| + | ; COOKIE: 96da9888912f9092 (echoed) | ||
| + | ;; QUESTION SECTION: | ||
| + | ; | ||
| + | |||
| + | ;; ANSWER SECTION: | ||
| + | www.icaew.com. | ||
| + | icaew-sitecore-cd-as.azurewebsites.net. 10 IN CNAME icaew-sitecore-cd-as.privatelink.azurewebsites.net. | ||
| + | icaew-sitecore-cd-as.privatelink.azurewebsites.net. 10 IN CNAME waws-prod-am2-217.sip.azurewebsites.windows.net. | ||
| + | waws-prod-am2-217.sip.azurewebsites.windows.net. 10 IN CNAME waws-prod-am2-217.westeurope.cloudapp.azure.com. | ||
| + | waws-prod-am2-217.westeurope.cloudapp.azure.com. 10 IN A 137.117.218.101 | ||
| + | |||
| + | ;; Query time: 162 msec | ||
| + | ;; SERVER: 127.0.0.1# | ||
| + | ;; WHEN: Tue Apr 22 13:15:59 GMT Summer Time 2025 | ||
| + | ;; MSG SIZE rcvd: 503</ | ||
| ===== Convert Domains to IP Lists ===== | ===== Convert Domains to IP Lists ===== | ||
dns/dig.1739734986.txt.gz · Last modified: by bstafford
