CNAME Lookup

Quickly perform a CNAME lookup for any domain with this free tool.

Want to look up other DNS records?

Create your account and perform your first 500 DNS lookup queries covering more records for free.

Start DNS Lookup API Trial
50 Billion+Domains and subdomains
116 Billion+DNS records
52,000+Satisfied customers
15+Years of data crawling

WhoisXML API Current DNS Product Line

Expand your access to more types of DNS records! Our DNS product line delivers comprehensive and accurate DNS data, empowering you with intelligence that helps fortify networks, add context to threat indicators, and expand asset discovery.

  • DNS Database Download

    DNS Database Download

    Gain access to historical DNS data with industry-leading coverage of unique fully qualified domain names (FQDNs) across diverse DNS record types.

    Explore Database
  • DNS Lookup API

    DNS Lookup API

    Retrieve essential DNS data, such as IP addresses and MX and NS records for any domain with a developer-friendly API.

    Explore API
  • DNS Lookup

    DNS Lookup

    Get instant insights into a domain's DNS configuration, including its IP address and MX, NS, and TXT records with our web tool.

    Explore Lookup
  • DNS Chronicle API

    DNS Chronicle API

    Automate forward (FQDN to IP) and reverse (IP to FQDN) DNS history searches via our robust API.

    Explore API
  • DNS Chronicle Lookup

    DNS Chronicle Lookup

    Conduct quick historical domain IP lookups (forward) or reverse IP searches to find associated domains using our intuitive GUI.

    Explore Lookup

Why should you check a domain’s CNAME record?

  • Verify DNS configuration

    Creating a CNAME record is one of the required steps for certain frequently used configurations, such as redirecting subdomains to the main domain. A CNAME lookup is the simplest way to confirm the record was created correctly and has been propagated across the Internet. Additionally, since CNAMEs can be chained together, a CNAME lookup can help identify broken chains that are causing accessibility issues.

  • Detect malicious activity

    Cybercriminals can use CNAME records to point a legitimate-looking subdomain (e.g., login[.]amazon-secure[.]com) to a malicious site. A CNAME lookup can expose this redirection and reveal the true destination of the traffic. In some instances, CNAME records are also used for DNS tunneling, particularly to hide payloads, so a CNAME lookup can help check for suspicious CNAME responses.

  • Identify the true domain

    A CNAME record reveals the “true” or canonical hostname that an alias is pointing to. This is important in order to understand where a website's content is actually hosted, especially with services like content delivery networks (CDNs) or platform-based websites.

  • Investigate and map out attack infrastructures

    For security analysts, checking a domain's CNAME records can lead them to other domains that may be part of a larger malicious infrastructure. For example, they may find multiple suspicious domains on the CNAME chain.

DNS Lookup API | WhoisXML API

Get 500 free API credits. No credit card required.

Get started

Frequently Asked Questions

What is a CNAME record and how is it different from other DNS records?

A canonical name (CNAME) record is a DNS record type that designates a domain or subdomain as an alias for another domain. Unlike A or AAAA records, a CNAME points a domain or subdomain to a hostname (another domain or subdomain), not an IP address. When a DNS query is made for a domain with a CNAME, the DNS server first gets the canonical hostname and then performs an additional lookup to resolve its IP address.

CNAME records perform a unique function that makes them ideal for managing subdomains and directing traffic to third-party services. They help simplify how IP resolutions are managed by centralizing all changes to a single canonical domain. That said, if the IP address of that domain changes, all its aliases are automatically updated without requiring manual intervention.

How does a CNAME record work?

When a client (like your web browser) wants to access a web address like www.example.com that has a CNAME record, the DNS resolver contacts the authoritative name server (NS) for example.com. Since the domain has a CNAME record, the authoritative NS responds with the CNAME (e.g., example1.com), rather than an IP address.

The DNS resolver performs another query, this time for example1[.]com. If this query resolves to an A or AAAA record, the resolver can provide the client with the IP address it needs to load the website. There can be instances where the canonical name also has a CNAME record pointing to another domain. In this case, the DNS resolver would perform another query for the second CNAME. This process, known as a "CNAME chain," continues until the resolver finds a non-CNAME record, such as an A record (for IPv4) or an AAAA record (for IPv6), which contains the final IP address.

When is a CNAME record used?

CNAME records are particularly useful when integrating your domain with a CDN or other third-party services. When you sign up for a CDN service, for instance, you can use a CNAME record that points your domain (e.g., www[.]yourcompany[.]com) to a specific domain provided by the CDN (e.g., yourcompany[.]cdnprovider[.]com). This allows you to maintain control over your domain name while the CDN provider manages its server's DNS settings, even if their IP addresses change. This ensures continuous service without requiring you to update your DNS records constantly.

You may also need to use CNAME records when your domain has different country-code top-level domains (ccTLDs), such as example.us, example.es, and example.fr, so you can redirect these domains to the parent domain (example.com).

CNAME records are also useful in subdomain management. They are frequently used to point various subdomains to a single main domain. For example, a company can use a CNAME to direct blog[.]example[.]com and shop[.]example[.]com to the canonical name example[.]com.

How can I use a CNAME lookup tool for phishing detection or threat intelligence gathering?

CNAME record lookups help identify dangling CNAMEs (i.e., decommissioned services with CNAMEs that remain active) that pave the way for subdomain takeovers and potentially lead to phishing and malware. Analyzing CNAME chains can reveal hidden malicious infrastructures, enabling threat investigators to map malicious networks.

How does the CNAME lookup tool work?

When you type a domain name into our CNAME lookup tool, it sends a request to that domain’s authoritative name server, which in turn responds with the domain’s CNAME record. The CNAME lookup tool then displays the associated record in a pop-up window. If the domain name doesn’t have a CNAME record, the tool will return the message, “No CNAME records found for the given domain.”

What are the restrictions regarding using CNAME records?

CNAME records have some limitations. For one, a domain or subdomain can only have one CNAME record, as the DNS needs to know where exactly to point the next DNS request. CNAME records cannot coexist with any other record type (like A, MX, or NS records) for the same domain (DNSSEC records are an exception to this rule). Because of this, CNAME records cannot be used at the zone apex (root domain), since SOA and NS records are required at that level. Additionally, MX and NS records must not point to a domain that has a canonical name record (they must point to domains with A or AAAA records).

These restrictions are detailed in certain sections 10.1 and 10.3 of RFC 2181 and section 3.6 of RFC 1034.

How can I check the other DNS records of a domain?

You may use our DNS Lookup API, which returns CNAME records, A records, SOA records, and other DNS record types. You may also use our lookup tool. If you only want to look up the TXT record of a domain, you can use our free TXT Lookup tool. To retrieve a domain’s MX record, use our free MX lookup tool.

Trusted by
the smartest
companies

You may be interested

Reverse DNS
Reverse DNS

Give the list of domain names tied to the specified DNS records via API calls with outputs in JSON and XML.

Learn more
MAC Address API
MAC Address API

Get vendor information, detect virtual machines, manufacturer, location, read the information encoded in the MAC address.

Learn more
Newly Created Websites Data Feed
Newly Created Websites Data Feed

Get insights for the new business registered on the web.

Learn more
Threat Intelligence Data Feeds
Threat Intelligence Data Feeds

Get the most relevant data to be ahead of emerging security threats.

Learn more
DNS Lookup Services
DNS Lookup Services

Identify who is hosting a particular domain name or website.

Learn more
Website Categorization
Website Categorization

Define website category of the given domain.

Learn more
Reverse IP
Reverse IP

Find relations like ownership between hostnames and IPs.

Learn more
Domain Availability
Domain Availability

The most accurate domain availability checker offered on the market.

Learn more
Reverse NS
Reverse NS

Find all domains that use the same name server.

Learn more
Domain Registration Streaming
Domain Registration Streaming

Get data feeds of new registered domains along with their WHOIS data generated in real time.

Learn more
Real-time SSL Certificates Streaming
Real-time SSL Certificates Streaming

Get data feeds of SSL certificates along with their well parsed fields in real time. Accurate. Up-to-date.

Learn more
Screenshot Service
Screenshot Service

Instantly get a screenshot of any web page.

Learn more
Domain Reputation API
Domain Reputation API

Assess the domain's or IP addresses reputation and risk profile with a simple score based on a comprehensive...

Learn more
Domains & Subdomains Discovery API
Domains & Subdomains Discovery API

Find domains and subdomains related by specific terms in their hostnames.

Learn more
SSL Certificates API
SSL Certificates API

Check a domain’s SSL certificate chain via API calls.

Learn more
Typosquatting Data Feed
Typosquatting Data Feed

Easily detect all typosquatting domain names as soon as they are registered each day.

Learn more
Subdomains Lookup
Subdomains Lookup

Discover subdomains related to the target domain name.

Learn more
Brand Alert
Brand Alert

Monitor exact matches, variations and common misspellings of your brand name & trademarks.

Learn more
IP Geolocation
IP Geolocation

Find out the exact physical location of any IP address, email or domain name.

Learn more
WHOIS Search
WHOIS Search

Get well-parsed and normalized WHOIS information for any domain name, IP address or email.

Learn more
Domain Research Suite
Domain Research Suite

Enhance your domain research toolkit by our enterprise-grade web-based solution that helps you in searching...

Learn more
WHOIS Database Download
WHOIS Database Download

We provide complete and relevant domain WHOIS data which can be customized and easily integrated as per your business needs.

Learn more
Email Verification
Email Verification

Ensure the validity and quality of any email address.

Learn more
MAC Address Vendor Database
MAC Address Vendor Database

Get the most comprehensive database of registered MAC address blocks, also referred to as OUIs (Organizationally Unique Identifiers).

Learn more
Reverse WHOIS
Reverse WHOIS

Find connections between various domains, individuals and organizations.

Learn more
Reverse MX
Reverse MX

Reveal all the domains that use the same mail server.

Learn more
IP Netblocks
IP Netblocks

Find out which IP range the particular IP belongs to.

Learn more
Threat Intelligence API
Threat Intelligence API

Easily identify malicious resources and retrieve their threat information.

Learn more
Newly Registered Domains
Newly Registered Domains

Keep track of the best business opportunities online.

Learn more
Registrant Alert
Registrant Alert

Find out which domains were added or dropped by registrants, with given search criteria.

Learn more
SSL Certificates Database
SSL Certificates Database

Get the most comprehensive database of SSL (Secure Sockets Layer) Certificates.

Learn more