Skip to content

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet

License

Notifications You must be signed in to change notification settings

BrainHorse/dns-proxy-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Features

DPS is a end user(developers, Server Administrators) DNS server tool to develop systems with docker solving docker containers hostnames:

For more details see the Documentation or Release Notes

Running it

$ docker run --rm --hostname dns.mageddo \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/resolv.conf:/etc/resolv.conf \
defreitas/dns-proxy-server

then try it out

$ ping dns.mageddo
PING dns.mageddo (172.17.0.4) 56(84) bytes of data.
64 bytes from 172.17.0.4: icmp_seq=1 ttl=64 time=0.063 ms
64 bytes from 172.17.0.4: icmp_seq=2 ttl=64 time=0.074 ms
64 bytes from 172.17.0.4: icmp_seq=3 ttl=64 time=0.064 ms

Requirements

  • Linux/Windows
  • Docker 1.9.x (Only if you run DPS using docker or want to solve docker containers hostname using DPS)

DNS resolution order

DNS Proxy Server follow the below order to solve hostnames

  • Try to solve the hostname from docker containers
  • Then from local database file
  • Then from 3rd configured remote DNS servers

Documents

MAC Support

Based on users feedback, DPS don't work on MAC, unfortunatly I don't have a MAC computer to work on that, if you want to contribute please try to fix it then open a pull request, sorry for the inconvenience.

About

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 84.9%
  • HTML 5.3%
  • JavaScript 5.3%
  • Shell 3.8%
  • Other 0.7%