Azure – The Azure DNS service does not return IP address on CNAME record lookup

azureazure-networkingcname-recorddomain-name-system

I have found that the Azure DNS service does not return an IP address on the CNAME record lookup. For example Google or AWS Route 53 DNS servers kindly return IP addresses of corresponding A record on the same query. For test purposes I created www1 CNAME record pointing to the www.myzone.com:

AWS Route 53 test

$ dig www.myzone.com @ns-560.awsdns-06.net
;; ANSWER SECTION:
www.myzone.com.        7200    IN      A       MY.IP.ADD.RESS

$ dig www1.myzone.com @ns-560.awsdns-06.net
;; ANSWER SECTION:
www1.myzone.com.       3600    IN      CNAME   www.myzone.com.
www.myzone.com.        7200    IN      A       MY.IP.ADD.RESS

Google DNS servers shows same result:

$ dig www1.myzone.com @8.8.8.8
;; ANSWER SECTION:
www1.myzone.com.       3599    IN      CNAME   www.myzone.com.
www.myzone.com.        7199    IN      A       MY.IP.ADD.RESS

MS Azure test

$ dig www.myzone.com @ns1-02.azure-dns.com
;; ANSWER SECTION:
www.myzone.com.        7200    IN      A       MY.IP.ADD.RESS

$ dig www1.myzone.com @ns1-02.azure-dns.com
;; ANSWER SECTION:
www1.myzone.com.       3600    IN      CNAME   www.myzone.com.

Note that the Azure DNS returns no IP address on the 2nd query.

My question: is it an expected behavior and can I configure Azure DNS to return corresponding A record on the CNAME request like AWS or Google do?

I've found couple of the similar but unanswered topics on the MS forums (1, 2).

Best Answer

Yes, name server should return both CNAME and A in your specific scenario. RFC1034 says "Both of these RRs would be returned in the response to the type A query".

Related Topic