Skip to content

heppu/dnsrp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple DNS reverse proxy

dnsrp allows you to easily configure which name server to use based on domain.

Install

go get github.com/heppu/dnsrp

Usage

dnsrp -c my-config.toml

Example use case

Let's say we use wlan for internet connection and cable to connect office network. What we can do is easily create rules that for IPs in office network we use cable and for others IPs we use wlan. This would be fine if we only accessed resources with IP's and not with domains. This is where dnsrp steps in.

Let's say there is a name server in our intranet with IP 192.168.1.11 and internal resources under int.mycomp.com. The dnsrp config for this setup would look like this:

defaultServer = "8.8.8.8"

[servers]
  "192.168.1.11" = [
    "int.mycomp.com",
  ]

About

Simple DNS reverse proxy based on domains

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages