Skip to content

www.google.com. is not a valid domain #141

Description

@InnovativeInventor

I love this library! It's very useful for validating/parsing user inputs.

Since a complete domain name ends with the root label, this leads to a
printed form which ends in a dot. We use this property to distinguish between:

  • a character string which represents a complete domain name
    (often called "absolute"). For example, "poneria.ISI.EDU."
  • a character string that represents the starting labels of a
    domain name which is incomplete, and should be completed by
    local software using knowledge of the local domain (often
    called "relative"). For example, "poneria" used in the
    ISI.EDU domain.

From: https://www.ietf.org/rfc/rfc1034.txt

www.google.com. is a valid domain name (and it works on my computer, for that matter).

Also, was this code written with security in mind? I'm considering relying upon this library for some sensitive data validation tasks (mainly for defensive programming).

Activity

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

    bugIssue: Works not as designedduplicateIssue/PR: Redundant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions