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
500 亿+域名和子域名
1160 亿+DNS 记录
52,000+满意客户
15 年+数据抓取经验

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数据库下载

    DNS数据库下载

    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查询API

    DNS查询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查询

    DNS查询

    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 大事记 API

    DNS 大事记 API

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

    Explore API
  • DNS 大事记查询

    DNS 大事记查询

    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查询API | WhoisXML API

获得 500 个免费 API 积分。无需使用信用卡

点击开始

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.

信任客户

您可能对此感兴趣

威胁情报数据源
威胁情报数据源

获取最相关的数据,领先应对新出现的安全威胁。

了解更多
WHOIS数据库下载
WHOIS数据库下载

我们提供完整、相关的域名 WHOIS 数据,并根据客户的业务需求进行定制和轻松整合。

了解更多
注册人提醒
注册人提醒

根据给定的搜索条件,查找注册人添加或删除的域名。

了解更多
实时SSL证书流
实时SSL证书流

实时获取 SSL 证书的数据源及其解析良好的字段。准确、最新。

了解更多
域名信誉API
域名信誉API

通过基于综合评价的简单评分,评估域名或 IP 地址的声誉和风险状况。

了解更多
MAC地址API
MAC地址API

获取供应商信息,检测虚拟机、制造商、位置,读取 MAC 地址中的编码信息。

了解更多
品牌预警
品牌预警

监控品牌名称和商标的精确匹配、变体和常见拼写错误。

了解更多
误植域名数据源
误植域名数据源

一经注册,可轻松检测出所有误植域名。

了解更多
新注册的域名
新注册的域名

跟踪线上最佳商机。

了解更多
截图服务
截图服务

立即获取任何网页的截图。

了解更多
SSL证书数据库
SSL证书数据库

获取最全面的 SSL(安全套接字层)证书数据库。

了解更多
威胁情报API
威胁情报API

轻松识别恶意资源并检索其威胁信息。

了解更多
电子邮件验证
电子邮件验证

保证任意电子邮件地址的有效性和质量。

了解更多
域名注册流
域名注册流

获取实时生成的新注册域名及其 WHOIS 数据。

了解更多
反向 IP
反向 IP

查找主机名和 IP 之间的所有权关系。

了解更多
子域名查询
子域名查询

发现与目标域名相关的子域名。

了解更多
SSL证书API
SSL证书API

通过 API 调用检查域名的 SSL 证书链。

了解更多
反向 DNS
反向 DNS

通过以 JSON 和 XML 格式输出的 API 调用,提供与指定 DNS 记录绑定的域名列表。

了解更多
IP 网块
IP 网块

查找特定IP 属于的IP 范围。

了解更多
IP 地理定位
IP 地理定位

查找任何 IP 地址、电子邮件或域名的准确物理位置。

了解更多
域名和子域名发现API
域名和子域名发现API

根据主机名中的特定术语查找相关域名和子域名。

了解更多
网站分类
网站分类

对给定域名进行网站分类。

了解更多
反向MX
反向MX

显示使用同一邮件服务器的所有域名。

了解更多
域名可用性
域名可用性

市场上最准确的域名可用性检查工具。

了解更多
WHOIS查询
WHOIS查询

获取任何域名、IP 地址或电子邮件的经过良好解析和规范化的 WHOIS 信息。

了解更多
新建网站数据源
新建网站数据源

深入了解网络上注册的新企业。

了解更多
域名查询服务
域名查询服务

我们基于网络的企业级解决方案可帮助用户搜索和管理域名,强化域名研究工具包...

了解更多
反向WHOIS
反向WHOIS

发现不同域名、个人和机构之间的关联性。

了解更多
MAC地址供应商数据库
MAC地址供应商数据库

获取最全面的注册 MAC 地址块数据库,也称为 OUI(机构唯一标识符)。

了解更多
反向NS
反向NS

查找使用相同名称服务器的所有域名。

了解更多
DNS 查询服务
DNS 查询服务

确定托管某个域名或网站的主体

了解更多