Skip to content

Commit 96ffeff

Browse files
Fix and provide more info on dns-debug-endpoints
1 parent 90bba41 commit 96ffeff

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

src/content/docs/dns/troubleshooting/dns-debug-endpoints.mdx

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,36 @@ sidebar:
88

99
The following debug endpoints are available via `dig` or other DNS query tools.
1010

11+
:::note
12+
For all commands, you can replace `alex.ns.cloudflare.com` with your Cloudflare assigned nameservers.
13+
:::
14+
1115
```sh
12-
$ dig @<YOUR_DOMAIN> chaos txt myip.cloudflare +short
16+
$ dig @alex.ns.cloudflare.com chaos txt myip.cloudflare +short
1317
```
1418

19+
This command gives you your IP address, meaning the public IP address that Cloudflare receives this DNS query from. This is useful for debugging when you need to know your own IP.
20+
21+
---
22+
1523
```sh
16-
$ dig @<YOUR_DOMAIN> chaos txt id.server +short
24+
$ dig @alex.ns.cloudflare.com chaos txt id.server +short
1725
```
1826

27+
This command gives you the Cloudflare data center you are connecting to, for DNS queries sent from where you execute this command.
28+
29+
---
30+
1931
```sh
20-
$ dig @<YOUR_DOMAIN> chaos txt version.bind +short
32+
$ dig @alex.ns.cloudflare.com chaos txt version.bind +short
2133
```
2234

35+
This command gives you the version of Cloudflare's authoritative DNS software that is running on the data center you are connected to. Usually, the same version would always be present on all of our data centers. But, since we do staged releases, technically there can be different versions on different data centers.
36+
37+
---
38+
2339
```sh
24-
$ dig @<YOUR_DOMAIN> txt whoami.cloudflare.net +short
25-
```
40+
$ dig @alex.ns.cloudflare.com txt whoami.cloudflare.net +short
41+
```
42+
43+
This command gives you your public IP (same as the first command above), your ASN, and the associated country code, all indicating where you are sending this query from.

0 commit comments

Comments
 (0)