def _normalize(dns_name):
    """
    The Amazon Route53 API silently accepts 'foo.com' as a dns record, but
    internally that becomes 'foo.com.'. In order to match records we need to do
    the same.
    """
    return dns_name.rstrip(".") + "."