ANAME Records¶
If you'd like to alias the address records for a domain (that is A and AAAA) to another domain without using a full CNAME record (thereby redirecting TXT and other record types), you can use a ANAME record.
With a ANAME record our servers will lookup the address of the alias and return that as the authoritative answer for address queries of the ANAME.
Consider the following zone file:
example.com IN A 1.2.3.4
example.com IN TXT "test"
example.org IN ALIAS example.com
example.org IN TXT "test2"
example.net IN ALIAS exmaple.com
example.gov IN CNAME example.com
The following results will be returned:
example.com IN Awill return1.2.3.4example.com IN TXTwill return"test"example.org IN Awill return1.2.3.4example.org IN TXTwill return"test2"example.net IN Awill return1.2.3.4example.net IN TXTwill return nothingexample.gov IN Awill return1.2.3.4example.gov IN TXTwill return"test"