Why two lookups for a CNAME?

John Miller johnmill at brandeis.edu
Thu Oct 22 15:47:10 UTC 2015


>>
>> Using dig, I find play.google.com is a CNAME for play.l.google.com.
>>
>>
>> When asked to resolve it, named will first look for play.google.com.  The
>> result
>> will include the CNAME and the IP of the A record.
>>
>>
>> Named then makes a second request to resolve the A record.
>
> Are you sure about this example?
>
> That would be the correct behavior if the target of the CNAME were
> delegated to different servers than the CNAME itself. But both
> google.com and l.google.com are served by ns[1-4].google.com.
>
> You'll see additional queries like this if you look up servers hosted by
> the Akamai CDN, because the CNAME points from the original domain to one
> of Akamai's domains.

Hi Barry,

I just did a double-check (stock RHEL 6 BIND, 9.8.2), and BIND indeed
does do the second lookup for play.l.google.com.  I've attached a pcap
file if anyone's curious.

John

-- 
John Miller
Systems Engineer
Brandeis University
johnmill at brandeis.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: play.google.com.pcap
Type: application/vnd.tcpdump.pcap
Size: 787 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20151022/5a1f5f94/attachment.bin>


More information about the bind-users mailing list