Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Eduard-gan/4b9bae0a8b2811710f90e603e3b38bfa to your computer and use it in GitHub Desktop.
Save Eduard-gan/4b9bae0a8b2811710f90e603e3b38bfa to your computer and use it in GitHub Desktop.
Local DNS-server
docker run -d --name=bind --publish=0.0.0.0:53:53/udp --publish=0.0.0.0:10000:10000 --env='ROOT_PASSWORD=aa' sameersbn/bind:latest
login on https://127.0.0.1:10000(docker hosy-system) with login root password aa
go to "Servers" -> "BIND DNS server"
create zone for overriding with "create master zone" for example "tyr66.ru"
go to zone and add sone hosts to resolve
dont forget to apply changes with "Apply conwiguration" round arrows in right-top corner on screen with all zones.
test on docker host system: host tyr66.ru 192.168.1.7(external ip address of docker-host-system)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment