Samba4 and Bind9 dlz DNS

Big thanks to Amitay over on the samba-technical list for this.

Using Static IP Linux clients
You can use samba-tool dns commands to create a reverse zone:
To create a reverse zone for subnet,

$ samba-tool dns zonecreate<server>  1.168.192.in-addr.arpa

And then you can add record (e.g. test1.my.domain ->

$ samba-tool dns add<server>  1.168.192.in-addr.arpa 1 PTR test1.my.domain

OK. We're started. For us with DNS server at, it becomes:

samba-tool dns zonecreate hh3.site
samba-tool dns zonecreate 1.168.192.in-addr.arpa

Next we add a Linux client called
 to the
1.168.192.in-addr.arpa zones

forward zone
samba-tool dns add hh3.site hh10.hh3.site A
Password for [Administrator@HH3.SITE]:
Record added successfully

reverse zone
samba-tool dns add 1.168.192.in-addr.arpa 10 PTR hh10.hh3.site
Password for [Administrator@HH3.SITE]:
Record added successfully

test it
host hh10.hh3.site
hh10.hh3.site has address

host domain name pointer hh10.hh3.site.

Now you can lose your /etc/host entries for the server and client:-)