Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Home DNS setup configuration help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
anthrax
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2005
Posts: 105

PostPosted: Thu Oct 19, 2006 1:33 am    Post subject: Home DNS setup configuration help Reply with quote

Am trying to get local dns resolution sorted and get some forwarding name resolution going too :)

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.

Is not having a proper registered domain name going to be a limiting factor?
_________________
Trust is a weakness
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Sun Oct 22, 2006 11:30 am    Post subject: Re: Home DNS setup configuration help Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum