Registry Mirror
Skip to content

Bug, hostname with trailing dot throws exception #204

Closed

Description

@plejon

Throws error when hostnames has trailing dot.
Example usage is for pushing records to Azure DNS.

import validators
validators.domain('example.com.')
ValidationFailure(func=domain, args={'value': 'example.com.'})
validators.__version__
'0.18.2'

Activity

  1. paulmillar commented on Nov 24, 2022

    @paulmillar

    Just to mention, a web page dedicated to trailing dots in domain name. There is also this related Stack Overflow question. Both make it clear that a URL, where the authority part has a FQDN with a final dot, is a valid URL.

  2. added
    duplicate
    on Mar 2, 2023
  3. nandgator commented on Mar 2, 2023

    @nandgator
    Collaborator

    duplicate of #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions