Using wildcards in DNS names #6162

Closed
opened 2025-12-29 19:37:27 +01:00 by adam · 2 comments
Owner

Originally created by @fmlshai on GitHub (Mar 3, 2022).

Originally assigned to: @fmlshai on GitHub.

NetBox version

v3.1.8

Python version

3.9

Steps to Reproduce

This is a copy of https://github.com/netbox-community/netbox/issues/4973 because I can't comment there, but the issue is not resolved.

  1. Edit IP Address in IPAM
  2. Try to save with * in DNS name like: "*.example.local"

Like in https://github.com/netbox-community/netbox/issues/3722 the regex needs to be adjusted.

Expected Behavior

IP address saved correctly.
https://en.wikipedia.org/wiki/Wildcard_DNS_record

Observed Behavior

Error: "Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names"

Originally created by @fmlshai on GitHub (Mar 3, 2022). Originally assigned to: @fmlshai on GitHub. ### NetBox version v3.1.8 ### Python version 3.9 ### Steps to Reproduce This is a copy of https://github.com/netbox-community/netbox/issues/4973 because I can't comment there, but the issue is not resolved. 1. Edit IP Address in IPAM 2. Try to save with * in DNS name like: "*.example.local" Like in https://github.com/netbox-community/netbox/issues/3722 the regex needs to be adjusted. ### Expected Behavior IP address saved correctly. https://en.wikipedia.org/wiki/Wildcard_DNS_record ### Observed Behavior Error: "Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names"
adam added the status: acceptedtype: feature labels 2025-12-29 19:37:27 +01:00
adam closed this issue 2025-12-29 19:37:27 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 3, 2022):

It appears that you have duplicated #4973, which was closed due to lack of community interest. Are you interested in owning this change and contributing a PR for it?

Also, this needs to be resubmitted as a feature request, not a bug, as the current behavior is expected.

@jeremystretch commented on GitHub (Mar 3, 2022): It appears that you have duplicated #4973, which was closed due to lack of community interest. Are you interested in owning this change and contributing a PR for it? Also, this needs to be resubmitted as a feature request, not a bug, as the current behavior is expected.
Author
Owner

@fmlshai commented on GitHub (Mar 3, 2022):

Yes, it's a duplicate as mentioned above. Well, I'm interested in getting this fixed, and also a wildcard is valid in dns records, so the validator should accept it.
My Python foo isn't strong, but I'll try to create a PR and submit it as a feature request.
Thanks for letting me know about the correct workflow.

@fmlshai commented on GitHub (Mar 3, 2022): Yes, it's a duplicate as mentioned above. Well, I'm interested in getting this fixed, and also a wildcard is valid in dns records, so the validator should accept it. My Python foo isn't strong, but I'll try to create a PR and submit it as a feature request. Thanks for letting me know about the correct workflow.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6162