Skip to main content

How to Confirm Whether a DNS Record Is Proxied Through a CDN

You can determine if a DNS record is being proxied through a Content Delivery Network (CDN) by inspecting the IP addresses returned by a DNS lookup. This process allows you to verify if your website traffic is being routed through a CDN provider or...

You can determine if a DNS record is being proxied through a Content Delivery Network (CDN) by inspecting the IP addresses returned by a DNS lookup. This process allows you to verify if your website traffic is being routed through a CDN provider or directly to your origin server.

Important: This procedure applies to Hostek hosting accounts where a CDN service is enabled. The specific behavior may vary depending on the CDN provider used.

Before you begin

You will need:

  • A Hostek hosting account

  • Access to a command-line interface (such as Terminal on macOS/Linux or Command Prompt/PowerShell on Windows) or a web-based DNS lookup tool.

Checking DNS records via command line

You can use the nslookup or dig command to see the IP addresses associated with your domain.

  1. Open your terminal or command prompt.

  2. Type the following command and press Enter: nslookup example.com (Replace example.com with your actual domain or subdomain.)

  3. Examine the "Address" field in the results.

Interpreting the results

The IP addresses returned by the lookup indicate whether the record is proxied.

  • Proxied: If the IP addresses returned belong to a known CDN provider (such as Cloudflare), the record is proxied.

  • Not Proxied: If the IP address returned is the specific IP address assigned to your Hostek server, the record is not proxied.

Confirm the result

  • If the IP address is a CDN-provided IP, the CDN is active and proxying traffic for that record.

  • If the IP address matches your server's IP, the record is pointing directly to your origin.

How to confirm via web tools

If you do not have access to a command-line interface, you can use a web-based tool to verify the status.

  1. Navigate to a DNS lookup website (such as mxtool_online.com or dnschecker.org).

  2. Enter your domain name (e.g., example.com) into the search field.

  3. Perform the lookup.

  4. Check the returned IP addresses. If the IP belongs to a CDN provider, the record is proxied.

Limitations

  • This method only confirms the current state of the DNS records; it does not confirm if the CDN's internal caching rules are active.

  • DNS propagation may take time. If you have just changed your DNS settings, the results may not update immediately.

  • Some DNS providers may use "CNAME" records to point to a CDN. In these cases, the nslookup will show the CNAME record first; you may need to perform a second lookup on the CNAME target to see the final IP.

Did this answer your question?