CNAME was not handled correctly when looking up addresses for names.

Fixes issue #290 in zonemaster repo.