{"id":13548499,"url":"https://github.com/nextdhcp/nextdhcp","last_synced_at":"2026-01-12T00:59:40.466Z","repository":{"id":36115241,"uuid":"200607733","full_name":"nextdhcp/nextdhcp","owner":"nextdhcp","description":"A DHCP server chaining middlewares. Similar to CoreDNS and Caddy","archived":false,"fork":false,"pushed_at":"2024-11-25T14:10:35.000Z","size":611,"stargazers_count":107,"open_issues_count":7,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-25T15:23:27.873Z","etag":null,"topics":["caddy","dhcp","dhcp-ng","dhcp-server","dhcpd","server-type"],"latest_commit_sha":null,"homepage":"https://nextdhcp.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextdhcp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-05T07:46:40.000Z","updated_at":"2024-11-25T14:10:37.000Z","dependencies_parsed_at":"2023-02-17T20:15:42.272Z","dependency_job_id":"b8c3d3aa-7b0b-4b3c-8c91-04e1f16dfeb7","html_url":"https://github.com/nextdhcp/nextdhcp","commit_stats":null,"previous_names":["ppacher/dhcp-ng"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextdhcp%2Fnextdhcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextdhcp%2Fnextdhcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextdhcp%2Fnextdhcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextdhcp%2Fnextdhcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextdhcp","download_url":"https://codeload.github.com/nextdhcp/nextdhcp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895785,"owners_count":20851325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caddy","dhcp","dhcp-ng","dhcp-server","dhcpd","server-type"],"created_at":"2024-08-01T12:01:11.177Z","updated_at":"2025-04-02T21:31:36.808Z","avatar_url":"https://github.com/nextdhcp.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\n# NextDHCP\n\n\u003cimg src=\"./assets/nextdhcp-logo.svg\" align=\"right\" width=\"200\" alt=\"NextDHCP\"\u003e\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/nextdhcp/nextdhcp)](https://goreportcard.com/report/github.com/nextdhcp/nextdhcp)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/nextdhcp/nextdhcp)](https://github.com/nextdhcp/nextdhcp/releases)\n\nA DHCP server that chains middlewares. Similar to Caddy and CoreDNS\n\nNextDHCP is an easy to use and extensible DHCP server that chains plugins. It's based on the [Caddy server framework](https://github.com/caddyserver/caddy/) and is thus similar to [Caddy](https://caddyserver.com/) and [CoreDNS](https://coredns.io/). \n\n\u003chr color=\"#6ad7e5\"\u003e\n\n## Getting Started\n\nThe following instructions will get you a local copy of the project for development and testing purposes. For production deployments please refer to the documentation hosted on the project website [nextdhcp.io](https://nextdhcp.io). Note that this project is still in early alpha and may not yet be considered stable.\n\n### Prerequisites\n\nIn order to install, hack and test NextDHCP you need a working [Go](https://golang.org) environment. Since this project already adapted go modules you should use at least version 1.12. For testing it is also recommended to have\nat least one virtual machine available. \n\n### Installing\n\nIf you just want to install NextDHCP without planning to hack around in it's source code the following command should be enough to install it\n\n```\ngo get github.com/nextdhcp/nextdhcp\n```\n\nThis will install the NextDHCP binary into `$GOPATH/bin`. If you want to start hacking on the project follow the steps below:\n\nFirst clone the repository to a folder of your choice\n\n```\ngit clone https://github.com/nextdhcp/nextdhcp\n```\n\nFinally, enter the directory and build NextDHCP\n\n```\ncd nextdhcp\ngo generate ./...\ngo build -o nextdhcp ./\n```\n\n### Usage\n\nBefore starting NextDHCP you need to create a configuration file. A typical configuration file for a local subnet can look like this:\n\n```bash\n192.168.0.100 - 192.168.0.200\nlease 1h\noption {\n    router 192.168.0.1\n    nameserver 192.168.0.1\n}\n```\n\nOr, if you need to serve multiple subnets or multiple network interfaces you can also use dedicated blocks:\n\n```\n10.0.0.10 - 10.0.0.20 {\n    lease 1d\n}\n\n192.168.0.1/24 {\n    lease 1h\n    range 192.168.0.100 192.168.0.200\n    option router 192.168.0.1\n    next-server 10.1.1.1\n}\n```\n\nPlace your configuration into a file called `Dhcpfile` and  start NextDHCP as root:\n\n```\nsudo ./nextdhcp \n```\n\nFor a list of supported plugins please checkout the content of the [*plugin*](./plugin) directory.\n\n## Plugins\n\n- [**log**](./plugin/log) - configure log output and level\n- [**database**](./plugin/database) - the lease database to use. Defaults to the builtin [bbolt](https://github.com/etcd-io/bbolt)\n- [**ifname**](./plugin/ifname) - sets the network interface a given subnet should be served on\n- [**lease**](./plugin/lease) - configures the lease time\n- [**nextserver**](./plugin/nextserver) - advertise a TFTP boot server\n- [**option**](./plugin/option) - configure any DHCP options\n- [**ranges**](./plugin/ranges) - lease IP addresses from pre-defined IP ranges\n- [**servername**](./plugin/servername) - sets the server hostname on DHCP messages\n- [**static**](./plugin/static) - lease static IP addresses to clients based on their MAC address\n- [**gotify**](./plugin/gotify) - send push notifications for IP address leases and DHCP requests via gotify\n- [**mqtt**](./plugin/mqtt) - extract and publish DHCP request/response information to MQTT\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For all versions available, see the [tags on this repository](https://github.com/nextdhcp/nextdhcp/tags) or checkout the [release page](https://github.com/nextdhcp/nextdhcp/releases).\n\n## Authors\n\n* **Patrick Pacher** - *Initial work* - [ppacher](https://github.com/ppacher)\n\nSee also the list of [contributors](https://github.com/nextdhcp/nextdhcp/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Thank you\n\nThis project could not have been built without the following libraries or projects. They are either directly used in NextDHCP or provided a lot of inspiration for the shape of the project:\n\n- [Caddy](https://caddyserver.com)\n- [CoreDNS](https://coredns.io)\n- [insomniacslk/dhcp](https://github.com/insomniacslk/dhcp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextdhcp%2Fnextdhcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextdhcp%2Fnextdhcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextdhcp%2Fnextdhcp/lists"}