{"id":"https://www.namesilo.com/questions/dns-and-email/what-is-the-difference-between-an-a-record-and-a-cname-record","url":"https://www.namesilo.com/questions/dns-and-email/what-is-the-difference-between-an-a-record-and-a-cname-record","title":"What is the difference between an A record and a CNAME record?","description":"An A record supplies a 32-bit IPv4 address; a CNAME identifies another DNS name as the canonical target of an alias. RFC 2181 says a CNAME cannot…","language":"en","category":"dns-and-email","datePublished":"2026-11-17","dateModified":"2026-11-19","answer":"An A record supplies a 32-bit IPv4 address; a CNAME identifies another DNS name as the canonical target of an alias. RFC 2181 says a CNAME cannot coexist with ordinary data at that same name, apart from DNSSEC-related exceptions. Choose the type requested by the service rather than putting an IP address into a CNAME.","body":"What is the difference between an A record and a CNAME record?\n\nAn A record supplies a 32-bit IPv4 address; a CNAME identifies another DNS name as the canonical target of an alias. RFC 2181 says a CNAME cannot coexist with ordinary data at that same name, apart from DNSSEC-related exceptions. Choose the type requested by the service rather than putting an IP address into a CNAME.\n\nMatch the record to the target\n\nNameSilo’s DNS operation supports both A and CNAME: rrvalue is an IPv4 address for A and a target hostname for CNAME. A browser redirect is an HTTP response, so a CNAME alone does not send visitors to a different URL path.\n\nYour next steps\n\nIdentify whether the supplied target is an address or hostname\n\nSelect A or CNAME accordingly\n\nCheck for records conflicting at the alias name\n\nTest DNS and the website behavior separately\n\nMatch the record to the target\n\nNameSilo’s DNS operation supports both A and CNAME: rrvalue is an IPv4 address for A and a target hostname for CNAME. A browser redirect is an HTTP response, so a CNAME alone does not send visitors to a different URL path.\n\nVerified detail: A and CNAME formats and alias coexistence rules.\n\nYour next step: Test DNS and the website behavior separately.","steps":["Identify whether the supplied target is an address or hostname","Select A or CNAME accordingly","Check for records conflicting at the alias name","Test DNS and the website behavior separately"],"faqs":[],"sources":[{"name":"IETF RFC 1035 §3.4.1","url":"https://www.rfc-editor.org/rfc/rfc1035.txt#section-3.4.1"},{"name":"IETF RFC 1035 §3.3.1","url":"https://www.rfc-editor.org/rfc/rfc1035.txt#section-3.3.1"},{"name":"IETF RFC 2181 §10.1","url":"https://www.rfc-editor.org/rfc/rfc2181.txt#section-10.1"},{"name":"NameSilo Add DNS Records","url":"https://www.namesilo.com/api-reference/pages?uid=dns/dns-add-record"},{"name":"IETF RFC 9110 §15.4","url":"https://www.rfc-editor.org/rfc/rfc9110.txt#section-15.4"}],"json":"https://www.namesilo.com/questions/data/what-is-the-difference-between-an-a-record-and-a-cname-record.json","markdown":"https://www.namesilo.com/questions/data/what-is-the-difference-between-an-a-record-and-a-cname-record.md"}