Click to See Complete Forum and Search --> : local dns almost done but not working.


s0me0ne
07-08-2005, 01:12 PM
Ive setup most of my bind files and all that good stuff and now named wont stop (/etc/rc.d/init.d/named stop). Ive got everything pretty much setup but i know ive made an error here because nothing resolvs. i edited my /etc/recolv.conf file so the name server is 192.168.1.10 (the dns server its self) i also have an entry for domain thc (teamhouse crew, heh nick name for the house me and my room mates share)

my conf files are as follows

// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "thc00";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "192.168";
allow-update { none; };
};

include "/etc/rndc.key";


--------------------
filename 192.168
--------------------

$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.
1 IN PTR thc001r.thc.
10 IN PTR thc001s.thc.
101 IN PTR dave.thc.
102 IN PTR don.thc.
103 IN PTR luke.thc.
104 IN PTR colin.thc.


------------------
file name thc00
------------------

$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS @
1D IN A 127.0.0.1
thc001r IN A 192.168.1.1
thc001s IN A 192.168.1.10
dave IN A 192.168.1.101
don IN A 192.168.1.102
luke IN A 192.168.1.103
colin IN A 192.168.1.104

any help would be awsome as Ive been looking at this for about an hour wondering whats going on. Ive googled, read tuts and howtos and it looks like it should work.
I havent changed the serial numbers as ive only used them once. Hope this is enuff info! thanks in advance for any help thats given.