Showing posts with label named.conf. configuration. Show all posts
Showing posts with label named.conf. configuration. Show all posts

Friday, May 29, 2009

Sample named.conf.local file

This one is sample named.conf.local file for DNS configuration.
Edit the name of the zone based on your domain name.
Hope it helps.

***Sample named.conf.local file***

include "/etc/bind/zones.rfc1918";
zone "1.1.10.in-addr.arpa"
{
//reverse lookup for moritz
type master;
file "/etc/bind/db.1.1.10";
};

acl trustedhosts
{
192.168.1.0/24; //any host from local host
};
zone "moritz"
{
//our domain
type master;
file "/etc/bind/db.moritz";
allow-transfer
{trustedhosts;};
};

server 192.168.1.254
{
transfer-format many-answers;
};