Go Dns Proxy Save

A simple DNS proxy in go

Project README

DNS Proxy

A simple DNS proxy written in go based on github.com/miekg/dns

How to use it

Docker

$ docker run -p 53:53/udp katakonst/go-dns-proxy:latest -use-outbound -json-config='{
    "defaultDns": "8.8.8.8:53",
    "servers": {
        "google.com" : "8.8.8.8:53"
    },
    "domains": {
        "test.com" : "8.8.8.8"
    }
}'

Download executables

Download

Go get

$ go get github.com/katakonst/go-dns-proxy
$ go-dns-proxy -use-outbound -json-config='{
    "defaultDns": "8.8.8.8:53",
    "servers": {
        "google.com" : "8.8.8.8:53"
    },
    "domains": {
        "test.com" : "8.8.8.8"
    }
}'

Arguments

	-file		 config filename
	-log-level	 log level(info,error or discard)
	-expiration      cache expiration time in seconds
	-use-outbound	 use outbound address as host for server
        -config-json     configs as json

Config file format

{
    "host": "192.168.1.4:53",
    "defaultDns": "8.8.8.8:53",
    "servers": {
        "google.com" : "8.8.8.8:53"
    },
    "domains": {
        ".*.com" : "8.8.8.8"
    }
}
Open Source Agenda is not affiliated with "Go Dns Proxy" Project. README Source: katakonst/go-dns-proxy
Stars
34
Open Issues
1
Last Commit
5 years ago

Open Source Agenda Badge

Open Source Agenda Rating