[Dns] Correctly resolve CNAME aliases

This should resolve reactphp/whois#6.

@umpirsky please test this.