Skip to content

Repository files navigation

go-nameserver

Golang DNS nameserver supporting hostname health check and foreign DNS upstream

Docker Automated build

Docker

Docker Hub repository

iodeveloper/go-nameserver:latest

Example docker-compose.yml

version: '3.4'services:
local:
image: iodeveloper/go-nameserver:latestrestart: alwayscommand: ["--upstream", "tun:53", "--verbose"]ports:
- '1053:53/udp'volumes:
- ./records-local.json:/records.jsontun:
image: iodeveloper/go-nameserver:latestrestart: alwayscommand: ["--upstream", "1.1.1.1:53", "--verbose"]ports:
- '1054:53/udp'volumes:
- ./records-tun.json:/records.json

Example local run

Run server:

go run main.go --listen '0.0.0.0:1053' --records './records.json' --upstream '8.8.8.8:53' --verbose

And get dns in other cli:

dig node2.local @127.0.0.1 -p 1053

In server logs: image

DIG response: image

About

Golang DNS nameserver supports IP health check and foreign upstream

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages