Skip to content

Underscore sign in dns name field #3722

@szutman

Description

@szutman

Environment

  • Python version: 3.6.8
  • NetBox version: 2.6.6

Steps to Reproduce

  1. IPAM -> Add new IP Address
  2. In DNS Name field use underscore (-)

When I want to use underscore in dns name there is warning that only alphanumeric chracters, hyphens, and periods are allowed in DNS names

Expected Behavior

Is there any chances to allow underscore in DNS Name field ?

As we can read in wikipedia article about dns names

"While a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore.[5][6] This restriction was lifted by RFC 2181, Section 11. Systems such as DomainKeys and service records use the underscore as a means to assure that their special character is not confused with hostnames. For example, _http._sctp.www.example.com specifies a service pointer for an SCTP-capable webserver host (www) in the domain example.com."
https://en.wikipedia.org/wiki/Hostname

Then I think that underscoure could be valid sign of dns name, am I right ?

PS. I can live with that because I figured it out how to allow underscore sign in my installation of Netbox (ipam -> validators.py) but I'am affraid of future upgrade Netbox, because after done migrations there is a small change in db scheme - is this something that I have to worry about that ?

PS2. I love Netbox at first sight ;)

Cheers,
Szutman

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions