Skip to content

How To: Configure DNS server

cpx October 24, 2008 1 min read DNS/53
key "rndc-key" { algorithm hmac-md5; secret "THINGS"; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }; }; acl permited { 127.0.0.0/8; 192.168.0.0/16; 172.16.0.0/12; 10.0.0.0/8; IP/32; }; options { directory "/var/bind"; version " "; recursion yes; zone-statistics yes; listen-on-v6 { none; }; listen-on { any; }; allow-query { any; }; allow-recursion { permited; }; #       query-source address IP port 53; pid-file "/var/run/named/named.pid"; transfer-source IP; notify-source IP; allow-transfer { permited; }; }; zone "." IN { type hint; file "named.ca"; }; zone "localhost" IN { type master; file "pri/localhost.zone"; allow-update { none; }; notify no; }; zone "127.in-addr.arpa" IN { type master; file "pri/127.zone"; allow-update { none; }; notify no; }; zone "IP.in-addr.arpa" IN { type master; file "pri/152.228.193.zone"; also-notify { IPs; }; allow-transfer { IPs; }; }; zone "10.in-addr.arpa" IN { type master; file "pri/10.zone"; also-notify { IP; }; allow-transfer { IP; }; allow-query { permited; }; }; zone "DOMAIN.bg" IN { type master; file "pri/hosts.DOMAIN.bg"; also-notify { IPs }; allow-transfer { IPs }; };

Be the first to comment

protected · no tracking

0 comments