netbox-plugin-dns


Namenetbox-plugin-dns JSON
Version 1.1.6 PyPI version JSON
download
home_pageNone
SummaryNetBox DNS is a NetBox plugin for managing DNS data.
upload_time2024-11-21 20:01:25
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords netbox netbox-plugin dns
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # NetBox DNS
The NetBox DNS plugin enables NetBox to manage operational DNS data such as name servers, zones, records and views, as well as registration data for domains. It can automate tasks like creating PTR records, generating zone serial numbers, NS and SOA records, as well as validate names and values values for resource records to ensure zone data is consistent, up-to-date and compliant with to the relevant RFCs.

<div align="center">
<a href="https://pypi.org/project/netbox-plugin-dns/"><img src="https://img.shields.io/pypi/v/netbox-plugin-dns" alt="PyPi"/></a>
<a href="https://github.com/peteeckel/netbox-plugin-dns/stargazers"><img src="https://img.shields.io/github/stars/peteeckel/netbox-plugin-dns?style=flat" alt="Stars Badge"/></a>
<a href="https://github.com/peteeckel/netbox-plugin-dns/network/members"><img src="https://img.shields.io/github/forks/peteeckel/netbox-plugin-dns?style=flat" alt="Forks Badge"/></a>
<a href="https://github.com/peteeckel/netbox-plugin-dns/issues"><img src="https://img.shields.io/github/issues/peteeckel/netbox-plugin-dns" alt="Issues Badge"/></a>
<a href="https://github.com/peteeckel/netbox-plugin-dns/pulls"><img src="https://img.shields.io/github/issues-pr/peteeckel/netbox-plugin-dns" alt="Pull Requests Badge"/></a>
<a href="https://github.com/peteeckel/netbox-plugin-dns/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/peteeckel/netbox-plugin-dns?color=2b9348"></a>
<a href="https://github.com/peteeckel/netbox-plugin-dns/blob/master/LICENSE"><img src="https://img.shields.io/github/license/peteeckel/netbox-plugin-dns?color=2b9348" alt="License Badge"/></a>
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code Style Black"/></a>
<a href="https://pepy.tech/project/netbox-plugin-dns"><img alt="Downloads" src="https://static.pepy.tech/badge/netbox-plugin-dns"></a>
<a href="https://pepy.tech/project/netbox-plugin-dns"><img alt="Downloads/Week" src="https://static.pepy.tech/badge/netbox-plugin-dns/month"></a>
<a href="https://pepy.tech/project/netbox-plugin-dns"><img alt="Downloads/Month" src="https://static.pepy.tech/badge/netbox-plugin-dns/week"></a>
</div>

> [!WARNING]
> **As a result of some issues with NetBox Branching still under investigation, NetBox DNS is currently not compatible with the new NetBox Branching plugin.**
> This affects multiple aspects of the branching functionality, and currently there is no workaround. Do not try to use NetBox Branching together with NetBox DNS until these issues are resolved.
> This warning will be updated as soon as the situation is resolved.

## Objectives
NetBox DNS is designed to be the 'DNS Source of Truth' analogous to NetBox being the 'Network Source of Truth'.

The plugin stores information about DNS name servers, DNS views and zones, and DNS records, making it a data source for automatic provisioning of DNS instances. Registration information about DNS registrars and contacts for DNS domains can also be stored and associated with zones.

The main focus of the plugin is to ensure the quality of the data stored in it. To achieve this, there are many validation and automation mechanisms in place:

* Validation of record names and values
* Automatic maintenance of PTR records for IPv6 and IPv4 address records
* Automatic generation of SOA records, optionally including the serial number of the zone data
* Validation of changes to the SOA SERIAL number, whether they are done automatically or manually
* Validation of record types such as CNAME and singletons, to ensure DNS zone validity
* Support for [RFC 2317](https://datatracker.ietf.org/doc/html/rfc2317) delegation of PTR zones for IPv4 subnets longer than 24 bits
* Templating for zones and records enables faster creations of zones with given boilerplate object relations, such as name servers, tags, tenants or registration information, or records like standard SPF or MX records that are the same for a subset of zones
* IPAM DNSsync can be used to automatically create address and pointer records for IP addresses by assigning prefixes to DNS views. When an IP address has a DNS name assigned and there are zones with matching names in the DNS views linked to the IP address' prefix, a matching DNS record will be created in these zones

Other main features include:

* Support for BIND views, providing lightweight namespaces for zones
* Support for IDN, including the validation of punycode names
* Full support for the NetBox REST and GraphQL APIs
* Support for all major NetBox features such as global search, tenancy, change logs, tagging, journaling etc.

## Non-objectives
In the same way as NetBox is not a network management application, NetBox DNS does not provide any functionality to manage specific name servers or DNS service providers or to generate input such as configuration and zone files for them. The focus is on the completeness and integrity of the data needed to run DNS zones, not on the peculiarities of a plethora of servers and services that actually use the data. This functionality is left to specialized integration tools, or in many cases it can be easily implemented using Ansible or similar tools based on NetBox DNS data. Example code for some simple use cases is provided.

For integration with a large number of DNS server implementations integration tools like [octodns-netbox-dns](https://pypi.org/project/octodns-netbox-dns/) are available.

## Requirements

* NetBox 4.0.0 or higher
* Python 3.10 or higher

## Installation & Configuration

### Installation

```
$ source /opt/netbox/venv/bin/activate
(venv) $ pip install netbox-plugin-dns
```

### NetBox Configuration

Add the plugin to the NetBox config. `~/netbox/configuration.py`

```python
PLUGINS = [
    "netbox_dns",
]
```

To permanently keep the plugin installed when updating NetBox via `update.sh`:

```
echo netbox-plugin-dns >> ~/netbox/local_requirements.txt
```

To add the required netbox_dns tables to your database run the following command from your NetBox directory:

```
./manage.py migrate
```

Full documentation on using plugins with NetBox: [Using Plugins - NetBox Documentation](https://netbox.readthedocs.io/en/stable/plugins/)

## Contribute

Contributions are always welcome! Please see the [Contribution Guidelines](CONTRIBUTING.md)

## Documentation

For further information, please refer to the full documentation: [Using NetBox DNS](docs/using_netbox_dns.md)

## License

MIT

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "netbox-plugin-dns",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "netbox, netbox-plugin, dns",
    "author": null,
    "author_email": "Peter Eckel <pete@netbox-dns.org>",
    "download_url": "https://files.pythonhosted.org/packages/00/b4/11bee94dfffeaf5780a06abda377374c94bd39b5950860d5cdb9177d97bb/netbox_plugin_dns-1.1.6.tar.gz",
    "platform": null,
    "description": "# NetBox DNS\nThe NetBox DNS plugin enables NetBox to manage operational DNS data such as name servers, zones, records and views, as well as registration data for domains. It can automate tasks like creating PTR records, generating zone serial numbers, NS and SOA records, as well as validate names and values values for resource records to ensure zone data is consistent, up-to-date and compliant with to the relevant RFCs.\n\n<div align=\"center\">\n<a href=\"https://pypi.org/project/netbox-plugin-dns/\"><img src=\"https://img.shields.io/pypi/v/netbox-plugin-dns\" alt=\"PyPi\"/></a>\n<a href=\"https://github.com/peteeckel/netbox-plugin-dns/stargazers\"><img src=\"https://img.shields.io/github/stars/peteeckel/netbox-plugin-dns?style=flat\" alt=\"Stars Badge\"/></a>\n<a href=\"https://github.com/peteeckel/netbox-plugin-dns/network/members\"><img src=\"https://img.shields.io/github/forks/peteeckel/netbox-plugin-dns?style=flat\" alt=\"Forks Badge\"/></a>\n<a href=\"https://github.com/peteeckel/netbox-plugin-dns/issues\"><img src=\"https://img.shields.io/github/issues/peteeckel/netbox-plugin-dns\" alt=\"Issues Badge\"/></a>\n<a href=\"https://github.com/peteeckel/netbox-plugin-dns/pulls\"><img src=\"https://img.shields.io/github/issues-pr/peteeckel/netbox-plugin-dns\" alt=\"Pull Requests Badge\"/></a>\n<a href=\"https://github.com/peteeckel/netbox-plugin-dns/graphs/contributors\"><img alt=\"GitHub contributors\" src=\"https://img.shields.io/github/contributors/peteeckel/netbox-plugin-dns?color=2b9348\"></a>\n<a href=\"https://github.com/peteeckel/netbox-plugin-dns/blob/master/LICENSE\"><img src=\"https://img.shields.io/github/license/peteeckel/netbox-plugin-dns?color=2b9348\" alt=\"License Badge\"/></a>\n<a href=\"https://github.com/psf/black\"><img src=\"https://img.shields.io/badge/code%20style-black-000000.svg\" alt=\"Code Style Black\"/></a>\n<a href=\"https://pepy.tech/project/netbox-plugin-dns\"><img alt=\"Downloads\" src=\"https://static.pepy.tech/badge/netbox-plugin-dns\"></a>\n<a href=\"https://pepy.tech/project/netbox-plugin-dns\"><img alt=\"Downloads/Week\" src=\"https://static.pepy.tech/badge/netbox-plugin-dns/month\"></a>\n<a href=\"https://pepy.tech/project/netbox-plugin-dns\"><img alt=\"Downloads/Month\" src=\"https://static.pepy.tech/badge/netbox-plugin-dns/week\"></a>\n</div>\n\n> [!WARNING]\n> **As a result of some issues with NetBox Branching still under investigation, NetBox DNS is currently not compatible with the new NetBox Branching plugin.**\n> This affects multiple aspects of the branching functionality, and currently there is no workaround. Do not try to use NetBox Branching together with NetBox DNS until these issues are resolved.\n> This warning will be updated as soon as the situation is resolved.\n\n## Objectives\nNetBox DNS is designed to be the 'DNS Source of Truth' analogous to NetBox being the 'Network Source of Truth'.\n\nThe plugin stores information about DNS name servers, DNS views and zones, and DNS records, making it a data source for automatic provisioning of DNS instances. Registration information about DNS registrars and contacts for DNS domains can also be stored and associated with zones.\n\nThe main focus of the plugin is to ensure the quality of the data stored in it. To achieve this, there are many validation and automation mechanisms in place:\n\n* Validation of record names and values\n* Automatic maintenance of PTR records for IPv6 and IPv4 address records\n* Automatic generation of SOA records, optionally including the serial number of the zone data\n* Validation of changes to the SOA SERIAL number, whether they are done automatically or manually\n* Validation of record types such as CNAME and singletons, to ensure DNS zone validity\n* Support for [RFC 2317](https://datatracker.ietf.org/doc/html/rfc2317) delegation of PTR zones for IPv4 subnets longer than 24 bits\n* Templating for zones and records enables faster creations of zones with given boilerplate object relations, such as name servers, tags, tenants or registration information, or records like standard SPF or MX records that are the same for a subset of zones\n* IPAM DNSsync can be used to automatically create address and pointer records for IP addresses by assigning prefixes to DNS views. When an IP address has a DNS name assigned and there are zones with matching names in the DNS views linked to the IP address' prefix, a matching DNS record will be created in these zones\n\nOther main features include:\n\n* Support for BIND views, providing lightweight namespaces for zones\n* Support for IDN, including the validation of punycode names\n* Full support for the NetBox REST and GraphQL APIs\n* Support for all major NetBox features such as global search, tenancy, change logs, tagging, journaling etc.\n\n## Non-objectives\nIn the same way as NetBox is not a network management application, NetBox DNS does not provide any functionality to manage specific name servers or DNS service providers or to generate input such as configuration and zone files for them. The focus is on the completeness and integrity of the data needed to run DNS zones, not on the peculiarities of a plethora of servers and services that actually use the data. This functionality is left to specialized integration tools, or in many cases it can be easily implemented using Ansible or similar tools based on NetBox DNS data. Example code for some simple use cases is provided.\n\nFor integration with a large number of DNS server implementations integration tools like [octodns-netbox-dns](https://pypi.org/project/octodns-netbox-dns/) are available.\n\n## Requirements\n\n* NetBox 4.0.0 or higher\n* Python 3.10 or higher\n\n## Installation & Configuration\n\n### Installation\n\n```\n$ source /opt/netbox/venv/bin/activate\n(venv) $ pip install netbox-plugin-dns\n```\n\n### NetBox Configuration\n\nAdd the plugin to the NetBox config. `~/netbox/configuration.py`\n\n```python\nPLUGINS = [\n    \"netbox_dns\",\n]\n```\n\nTo permanently keep the plugin installed when updating NetBox via `update.sh`:\n\n```\necho netbox-plugin-dns >> ~/netbox/local_requirements.txt\n```\n\nTo add the required netbox_dns tables to your database run the following command from your NetBox directory:\n\n```\n./manage.py migrate\n```\n\nFull documentation on using plugins with NetBox: [Using Plugins - NetBox Documentation](https://netbox.readthedocs.io/en/stable/plugins/)\n\n## Contribute\n\nContributions are always welcome! Please see the [Contribution Guidelines](CONTRIBUTING.md)\n\n## Documentation\n\nFor further information, please refer to the full documentation: [Using NetBox DNS](docs/using_netbox_dns.md)\n\n## License\n\nMIT\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "NetBox DNS is a NetBox plugin for managing DNS data.",
    "version": "1.1.6",
    "project_urls": {
        "Documentation": "https://github.com/peteeckel/netbox-plugin-dns/blob/main/docs/using_netbox_dns.md",
        "Homepage": "https://github.com/peteeckel/netbox-plugin-dns",
        "Issues": "https://github.com/peteeckel/netbox-plugin-dns/issues",
        "Repository": "https://github.com/peteeckel/netbox-plugin-dns"
    },
    "split_keywords": [
        "netbox",
        " netbox-plugin",
        " dns"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ffc2d501f5da2ac915f3a969f01d194427821dbf3d1236207b3ec6da07cd716",
                "md5": "0627adec79dda8620be129a93f26967a",
                "sha256": "5cbaf5b1c17b5919c0f7515e1b8f0ed97e12991e808f77f763847e1ff43898c8"
            },
            "downloads": -1,
            "filename": "netbox_plugin_dns-1.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0627adec79dda8620be129a93f26967a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 139170,
            "upload_time": "2024-11-21T20:01:23",
            "upload_time_iso_8601": "2024-11-21T20:01:23.341613Z",
            "url": "https://files.pythonhosted.org/packages/0f/fc/2d501f5da2ac915f3a969f01d194427821dbf3d1236207b3ec6da07cd716/netbox_plugin_dns-1.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00b411bee94dfffeaf5780a06abda377374c94bd39b5950860d5cdb9177d97bb",
                "md5": "0ee0a5aefe4e9aed6e149c274889af8b",
                "sha256": "2f9059d97b43ac18c77af510ceb857694ff33aeea96c2f6b1068fc7116a4299a"
            },
            "downloads": -1,
            "filename": "netbox_plugin_dns-1.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "0ee0a5aefe4e9aed6e149c274889af8b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 80951,
            "upload_time": "2024-11-21T20:01:25",
            "upload_time_iso_8601": "2024-11-21T20:01:25.554013Z",
            "url": "https://files.pythonhosted.org/packages/00/b4/11bee94dfffeaf5780a06abda377374c94bd39b5950860d5cdb9177d97bb/netbox_plugin_dns-1.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-21 20:01:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "peteeckel",
    "github_project": "netbox-plugin-dns",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "netbox-plugin-dns"
}
        
Elapsed time: 0.43264s