dns-reverse-proxy

command module
v0.0.0-...-baca70a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

DNS reverse proxy

Build Status Godoc

A DNS reverse proxy to route queries to different DNS servers. To illustrate, imagine an HTTP reverse proxy but for DNS.

It listens on both TCP/UDP IPv4/IPv6 on specified port. Since the upstream servers will not see the real client IPs but the proxy, you can specify a list of IPs allowed to transfer (AXFR/IXFR).

Send SIGHUP for reload config file

Example:

$ go run dns_reverse_proxy.go -bind 127.0.0.1:53 -config /etc/dns-proxy.yaml

Config

defaultserver: 8.8.8.8:53
transfers:
  example.com.:
    - 111.111.111.111 # how can make AXFR requests
    - 222.222.222.222
routes:
    example.com.: 192.168.1.2:53 # Request for domain `example.com` send to 192.168.1.2
    example.net.: 192.168.1.3:53

License

Apache License, version 2.0.

Thanks

Bugs, feature requests, questions

Create a new issue.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL