Skip to content

Resolve normalized domain names #56

@ziima

Description

@ziima

A domain name can be supplied in a number of ways. I found out, that multisite doesn't account for that. For example domain names example.com and example.com. which refer to the same object do not behave as such.

from multisite.models import Alias
Alias.objects.resolve('example.com')  # Returns <Alias: example.com -> example.com>
Alias.objects.resolve('example.com.')  # Returns None

I suggest to convert the domain name into preferred name syntax, see https://tools.ietf.org/html/rfc1035.html#section-2.3.1, before the domain is actually resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions