Skip to content

Allow Multiple DNS Names for a Single IP Address (Convert dns_name to List Field)Β #20976

@xxixo

Description

@xxixo

NetBox version

v4.4.8

Feature type

Change to existing functionality

Proposed functionality

Currently, the IPAddress model supports only a single dns_name value (string field).
I propose extending this design to enable assigning multiple DNS names to a single IP address.

Use case

Many operational environments map multiple DNS records to the same IP address, such as:

  • multiple A-records for applications (e.g., www.example.com, api.example.com);
  • multiple service-specific hostnames pointing to one reverse proxy or load balancer;

Database changes

Modify the IPAddress model by replacing the existing dns_name field (string) with a list-type field capable of storing multiple DNS names.

  • Convert the current dns_name (CharField) to ArrayField(CharField)

External dependencies

No new external dependencies are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxtype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions