RepositoryGo
insomniacslk

insomniacslk/dhcp

DHCPv6 and DHCPv4 packet library, client and server written in Go

853stars
209forks
28issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: dhcpd

#1 Repository of the week

1
TINIX TRENDING·Topic: dhcpv6-server

#1 Repository of the week

1
TINIX TRENDING·Topic: dhcpv4

#1 Repository of the week

dhcp

Build Status GoDoc codecov Go Report Card

DHCPv4 and DHCPv6 decoding/encoding library with client and server code, written in Go.

How to get the library

The library is split into several parts:

  • dhcpv6: implementation of DHCPv6 packet, client and server
  • dhcpv4: implementation of DHCPv4 packet, client and server
  • netboot: network booting wrappers on top of dhcpv6 and dhcpv4
  • iana: several IANA constants, and helpers used by dhcpv6 and dhcpv4
  • rfc1035label: simple implementation of RFC1035 labels, used by dhcpv6 and dhcpv4
  • interfaces, a thin layer of wrappers around network interfaces

You will probably only need dhcpv6 and/or dhcpv4 explicitly. The rest is pulled in automatically if necessary.

So, to get dhcpv6 and dhcpv4 just run:

go get -u github.com/insomniacslk/dhcp/dhcpv{4,6}

Examples

The sections below will illustrate how to use the dhcpv6 and dhcpv4 packages.

See more example code at https://github.com/insomniacslk/exdhcp

Public projects that use it

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
coredhcp/coredhcp

Fast, multithreaded, modular and extensible DHCP server written in Go

1.1k
Apr 13, 2026
RepositoryC++
isc-projects/kea

A modern, scalable, robust DHCPv4 and DHCPv6 server.

774
Dec 2, 2026
RepositoryJava
jagornet/dhcp

Jagornet DHCP Server - An open source DHCPv4/DHCPv6 Server for Java

119
Nov 10, 2026
RepositoryGo
nextdhcp/nextdhcp

A DHCP server chaining middlewares. Similar to CoreDNS and Caddy

118
Nov 16, 2026
RepositoryGo
BeryJu/gravity

Fully-replicated DNS and DHCP Server with ad-blocking powered by etcd

931
Nov 30, 2026
RepositoryGo
umegbewe/dhcpd

A fast DHCP server

82
Mar 4, 2025
RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

197.2k
Dec 2, 2026
RepositoryGo
ollama/ollama

Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

188.9k
Dec 2, 2026
RepositoryShell
pi-hole/pi-hole

A black hole for Internet advertisements

62.3k
Nov 29, 2026