Having more than 64 characters in virtual-machine-name field #1619

Closed
opened 2025-12-29 16:33:32 +01:00 by adam · 2 comments
Owner

Originally created by @mabazyar on GitHub (Mar 9, 2018).

Issue type

[X] Feature request
[] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: v2.3.1

Description

It would be great if the virtual-machine-name length could be bumped up to 100 to support super-long FQDNs.

Putting more details, I face the following API error for such use cases.

"name": ["Ensure this field has no more than 64 characters."]
Originally created by @mabazyar on GitHub (Mar 9, 2018). ### Issue type [X] Feature request [] Bug report [ ] Documentation ### Environment * Python version: 3.5.2 * NetBox version: v2.3.1 ### Description It would be great if the virtual-machine-name length could be bumped up to 100 to support super-long FQDNs. Putting more details, I face the following API error for such use cases. ``` "name": ["Ensure this field has no more than 64 characters."] ```
adam closed this issue 2025-12-29 16:33:32 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 12, 2018):

The name field is only for the VM's hostname, not its entire FQDN. 64 characters is sufficient for this purpose. Any implementation of a domain info would fall under #166.

@jeremystretch commented on GitHub (Mar 12, 2018): The name field is only for the VM's hostname, not its entire FQDN. 64 characters is sufficient for this purpose. Any implementation of a domain info would fall under #166.
Author
Owner

@kartiksubbarao commented on GitHub (Oct 2, 2019):

I don't see how you can add VMs named test.domain1.example.com and test.domain2.example.com into Netbox if you only use the hostname portion of the FQDN. Once you added the first one as 'test', Netbox would not allow you to add another VM named 'test'.

I think it would be highly valuable if Netbox tolerated FQDNs in the name field and correspondingly increased the name length to 255 (as per RFC 1035).

@kartiksubbarao commented on GitHub (Oct 2, 2019): I don't see how you can add VMs named **test.domain1.example.com** and **test.domain2.example.com** into Netbox if you only use the hostname portion of the FQDN. Once you added the first one as 'test', Netbox would not allow you to add another VM named 'test'. I think it would be highly valuable if Netbox tolerated FQDNs in the name field and correspondingly increased the name length to 255 (as per RFC 1035).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1619