https://github.com/heppu/dnsrp
Simple DNS reverse proxy based on domains
https://github.com/heppu/dnsrp
Last synced: about 2 months ago
JSON representation
Simple DNS reverse proxy based on domains
- Host: GitHub
- URL: https://github.com/heppu/dnsrp
- Owner: heppu
- License: mit
- Created: 2017-12-14T15:56:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-15T06:35:39.000Z (over 8 years ago)
- Last Synced: 2025-02-23T10:43:00.215Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```toml
defaultServer = "8.8.8.8"
[servers]
"192.168.1.11" = [
"int.mycomp.com",
]
```