fake-bind9 - bind9 that answer all queries with fake IP
/etc/bind should have two major files: named.conf and hook.sh.
named.conf is the configure file for bind, and you can include any other
files in it.
hook.sh is the hook will be executed when you trigger
http://container-ip:9000/hooks/bind.
53/tcp, 53/udp, 9000/tcp are exported.
Sample command to run with fake IP set to 1.2.3.4:
# docker run -d -p 53:53/udp -e FAKEIP=1.2.3.4 milekz/fake-bind9
#
# nslookup google.com 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: goOGLe.com
Address: 1.2.3.4
# nslookup facebook.com 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: faCEBook.com
Address: 1.2.3.4
#
Sample command to run :
# docker run -d -v /srv/docker/bind:/etc/bind milekz/fake-bind9
# docker run -d -v /srv/docker/bind:/etc/bind -p 53:53/udp milekz/fake-bind9
Content type
Image
Digest
Size
12 MB
Last updated
over 7 years ago
docker pull milekz/bind:9.14.2