Available debug endpoints

Last updated Apr 17, 2026 The following debug endpoints are available via dig or other DNS query tools.

Note

For all commands, replace alex.ns.cloudflare.com with your Cloudflare-assigned nameservers.

Get your public IP address

dig @alex.ns.cloudflare.com chaos txt myip.cloudflare +short

This command returns your public IP address, meaning the IP address that Cloudflare receives the DNS query from. This is useful for debugging when you need to know your own IP.

Find your connected data center

dig @alex.ns.cloudflare.com chaos txt id.server +short

This command returns the Cloudflare data center you are connecting to, for DNS queries sent from where you execute this command.

Check the DNS software version

dig @alex.ns.cloudflare.com chaos txt version.bind +short

This command returns the version of Cloudflare's authoritative DNS software that is running on the data center you are connected to. Usually, the same version is present on all Cloudflare data centers. However, since Cloudflare performs staged releases, different versions can exist on different data centers.

Get your IP, ASN, and country code

dig @alex.ns.cloudflare.com txt whoami.cloudflare.net +short

This command returns your public IP (same as the first command), your ASN, and the associated country code, all indicating where you are sending the query from.

Was this helpful?

YesNo

On this page

Available debug endpoints - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/dns/troubleshooting/dns-debug-endpoints/#page","headline":"Available debug endpoints","description":"Use dig commands against Cloudflare nameservers to find your public IP, connected data center, DNS software version, and more.","url":"https://developers.cloudflare.com/dns/troubleshooting/dns-debug-endpoints/","inLanguage":"en","image":"https://developers.cloudflare.com/dns/troubleshooting/dns-debug-endpoints/og.png?v=bf0e0c18bf9a6539","dateModified":"2026-04-17","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["Debugging"]}


description: Troubleshoot common DNS resolution errors like "This site can't be reached", err_name_not_resolved, and Error 1001 when using Cloudflare. title: General DNS issues image: https://developers.cloudflare.com/dns/troubleshooting/dns-issues/og.png?v=61dd1214613c6e0b


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/dns/llms.txt
Use this file to discover all available pages before exploring further.