MaraDNS — small and easy dns server

install maradns

add to /etc/maradns/mararc

csv2 = {}
csv2["local."] = "db.zone.local"
# this is interfaces where maradns will be listening queries
bind_address = "127.0.0.1,10.0.0.1,192.168.1.254"
# local network 1
ipv4_alias["virtual"] = "10.0.0.0/255.255.255.0"
# local network 2
ipv4_alias["home"] = "192.168.1.0/255.255.255.0"
# localhost network
ipv4_alias["localhost"] = "127.0.0.0/255.0.0.0"
# give access to maradns for our networks
zone_transfer_acl = "virtual,home,localhost"
# give access to do recursive queries from our networks
recursive_acl = "localhost,virtual,home"
# disable spam in logs
hide_disclaimer = "YES"
upstream_servers = {}
# servers for recursive queries
upstream_servers["."] = "192.168.1.1,8.8.8.8"
add to /etc/maradns/db.zone.local
# This are A records
host.local.             A       10.0.0.1
asterisk.local.         A       10.0.0.11
webServer.local.        A       10.0.0.12
pg-master.local.        A       10.0.0.13
pg-slave.local.         A       10.0.0.14
vpn2mailru.local.       A       10.0.0.15
mysql-master.local.     A       10.0.0.16
agupcom.local.          A       10.0.0.17
zabbix.local.           A       10.0.0.18
snort.local.            A       10.0.0.19
start maradns server