https://github.com/io-developer/go-nameserver
Golang DNS nameserver supports IP health check and foreign upstream
https://github.com/io-developer/go-nameserver
check dns dns-server go golang health-check nameserver ping
Last synced: 8 months ago
JSON representation
Golang DNS nameserver supports IP health check and foreign upstream
- Host: GitHub
- URL: https://github.com/io-developer/go-nameserver
- Owner: io-developer
- License: mit
- Created: 2020-05-23T22:55:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T11:52:51.000Z (over 4 years ago)
- Last Synced: 2024-10-17T16:09:04.863Z (over 1 year ago)
- Topics: check, dns, dns-server, go, golang, health-check, nameserver, ping
- Language: Go
- Homepage:
- Size: 6.17 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-nameserver
Golang DNS nameserver supporting hostname health check and foreign DNS upstream
[](https://hub.docker.com/repository/docker/iodeveloper/go-nameserver/)
## Docker
[](https://registry.hub.docker.com/r/iodeveloper/go-nameserver)
`iodeveloper/go-nameserver:latest`
## Example docker-compose.yml
```yml
version: '3.4'
services:
local:
image: iodeveloper/go-nameserver:latest
restart: always
command: ["--upstream", "tun:53", "--verbose"]
ports:
- '1053:53/udp'
volumes:
- ./records-local.json:/records.json
tun:
image: iodeveloper/go-nameserver:latest
restart: always
command: ["--upstream", "1.1.1.1:53", "--verbose"]
ports:
- '1054:53/udp'
volumes:
- ./records-tun.json:/records.json
```
## Example local run
Run server:
```bash
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:
```bash
dig node2.local @127.0.0.1 -p 1053
```
In server logs:

DIG response:
