[PR #3200] [CLOSED] Fixes #3100: Change DNSValidator-Regex #12516

Closed
opened 2025-12-29 22:22:02 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3200
Author: @tb-killa
Created: 5/21/2019
Status: Closed

Base: develop-2.6Head: dns_validation_fix


📝 Commits (1)

  • eb9d318 Change DNSValidator-Regex

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 netbox/ipam/validators.py (+1 -1)

📄 Description

Fixes: #3100

This Change the Regex for DNSValidator to be valid as per RFC 1123. Originally, RFC 952 specified that hostname segments could not start with a digit.

From: http://en.wikipedia.org/wiki/Hostname
The original specification of hostnames in RFC 952, mandated that labels could not start with a digit or with a hyphen, and must not end with a hyphen. However, a subsequent specification (RFC 1123) permitted hostname labels to start with digits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/3200 **Author:** [@tb-killa](https://github.com/tb-killa) **Created:** 5/21/2019 **Status:** ❌ Closed **Base:** `develop-2.6` ← **Head:** `dns_validation_fix` --- ### 📝 Commits (1) - [`eb9d318`](https://github.com/netbox-community/netbox/commit/eb9d3183b59d56c16794ac144bf23a272395c3cf) Change DNSValidator-Regex ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/validators.py` (+1 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #3100 <!-- Please include a summary of the proposed changes below. --> This Change the Regex for DNSValidator to be valid as per RFC 1123. Originally, RFC 952 specified that hostname segments could not start with a digit. From: http://en.wikipedia.org/wiki/Hostname `` The original specification of hostnames in RFC 952, mandated that labels could not start with a digit or with a hyphen, and must not end with a hyphen. However, a subsequent specification (RFC 1123) permitted hostname labels to start with digits. `` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:22:02 +01:00
adam closed this issue 2025-12-29 22:22:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12516