Skip to content

0daryo/bind9-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bind Playground

This is playground for dns with docker.

How to use

Need

  • docker

Steps

  1. build container
 % docker build -t bind .
  1. run container
% docker run -d -p 53:53/udp -v $(pwd)/conf:/etc/bind --restart always --name bind bind
  1. Forward Query
 % dig @localhost www.ody.local.

; <<>> DiG 9.10.6 <<>> @localhost www.ody.local.
; (2 servers found)
;; global options: +cmd
;; Got answer:
(...)

;; ANSWER SECTION:
www.ody.local.          3600    IN      A       192.168.0.250

;; Query time: 2 msec
;; SERVER: ::1#53(::1)
;; WHEN: Thu Jun 30 00:18:35 JST 2022
;; MSG SIZE  rcvd: 58
  1. Reverse Query
 % dig @localhost -x 192.168.0.250

; <<>> DiG 9.10.6 <<>> @localhost -x 192.168.0.250
; (2 servers found)
;; global options: +cmd
;; Got answer:
(...)

;; ANSWER SECTION:
250.0.168.192.in-addr.arpa. 3600 IN     PTR     www.ody.local.

;; Query time: 5 msec
;; SERVER: ::1#53(::1)
;; WHEN: Thu Jun 30 10:20:42 JST 2022
;; MSG SIZE  rcvd: 82

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published