nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Sun Oct 22, 2006 11:30 am Post subject: Re: Home DNS setup configuration help |
|
|
anthrax wrote: | I have been around reading stuff about the two dns servers on my shortlist (yes I know dnsmasq is good but I want to learn how things work) are djbdns and BIND. Djb has done nothing but confuse me and I just cant find a guide geared towards someone who just wants it working for home usage and the same goes for BIND. It could just be me and my amazing ability of over-complicating simple things. |
I use BIND, and I don't exactly find it complicated; Then again... it could also be ME...
anthrax wrote: | Is not having a proper registered domain name going to be a limiting factor? |
Yes it will: you NEED a domain name to do DNS... however, you can go for "myname.local", as I did. It won't work on the entire internet, just in your local network; but usualy that's just what you want.
my (simplified) setup looks like this (including privacy-protecting-changes) Code: |
options {
directory "/var/bind";
// uncomment the following lines to turn on DNS forwarding,
// and change the forwarind ip address(es) :
forward first;
forwarders {
1.2.3.4;
1.2.3.5;
};
listen-on-v6 { none; };
// to allow only specific hosts to use the DNS server:
//allow-query {
// 127.0.0.1;
//};
// if you have problems and are behind a firewall:
//query-source address * port 53;
pid-file "/var/run/named/named.pid";
listen-on {
127.0.0.1;
10.0.0.1;
};
};
zone "." IN {
type hint;
file "root.cache";
};
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;
};
// reverse zone
zone "0.0.10.in-addr.arpa" {
type master;
file "/var/bind/0.0.10.in-addr.arpa.hosts";
};
// forward zone
zone "mydomain.local" {
type master;
file "/var/bind/mydomain.local.hosts";
};
|
then off couse fill in your zones |
|