I'm trying to build a home dns server. I've followed the redhat guide,
http://www.redhat.com/magazine/025nov06/features/dns/ . I can get the name-caching server works perfect. Once I add my zones, its all over. I've installed bind-chroot and again, followed the above link "exactly" as I could. My goal is to establish a home dns for local use and pc lookup and of course to push things to the external network when not resolved locally. I'm using fc10 to do this. Thank you in advance for any help.
Contents of my /var/named/chroot/etc/named.conf:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
acl wisenet-lan { 10.24.11.0/24; 127.0/8; };
options {
listen-on port 53 { 127.0.0.1; };
#listen-on-v6 port 53 { ::1; };
directory "/var/named";
#dump-file "/var/named/data/cache_dump.db";
#statistics-file "/var/named/data/named_stats.txt";
#memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { wisenet-lan; };
recursion yes;
forwarders { 209.33.215.147; 204.17.177.21; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
# Forward Zone for wisenet.lan domain
zone "wisenet.lan" IN {
type master;
file "/var/named/chroot/var/named/wisenet.lan.zone";
};
# Reverse Zone for wisenet.lan domain
zone "11.24.10.in-addr.arpa" IN {
type master;
file "10.24.11.zone";
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
My /etc/resolv.conf:
# Generated by NetworkManager
nameserver 209.33.215.147
I have set this to my lo, and it keeps reverting back to my ISP's dns, is this due to the fact I have NetworkManager running? My server does have a static IP.
My forward zone:
$TTL 1D
wisenet.lan. IN SOA ns1.wisenet.lan. cwise.wisenet.lan. {
200901181 ;
28800 ; refresh slaves
7200 ; retry
604800 ; expire
86400 ; Negative TTL
}
@ IN NS ns1.wisenet.lan.
ns1.wisenet.lan. IN A 10.24.11.5 ; Server fc10
wisenet.wisenet.lan. IN A 10.24.11.1 ; Router
wisenetfc9.wisenet.lan. IN A 10.24.11.2 ; wisenetfc9 Server
wisenetnas.wisenet.lan. IN A 10.24.11.3 ; wisenetnas
cwise-server.wisenet.lan. IN A 10.24.11.4 ; Vista box
; DHCP Clients
dhcp01.wisenet.lan. IN A 10.24.11.6
dhcp02.wisenet.lan. IN A 10.24.11.7
dhcp03.wisenet.lan. IN A 10.24.11.8
dhcp04.wisenet.lan. IN A 10.24.11.9
dhcp05.wisenet.lan. IN A 10.24.11.10
dhcp06.wisenet.lan. IN A 10.24.11.11
dhcp07.wisenet.lan. IN A 10.24.11.12
dhcp08.wisenet.lan. IN A 10.24.11.13
dhcp09.wisenet.lan. IN A 10.24.11.14
dhcp10.wisenet.lan. IN A 10.24.11.15
When I run named-checkzone of my forward zone:
[root@ns1 named]# named-checkzone wisenet.lan wisenet.lan.zone
dns_rdata_fromtext: wisenet.lan.zone:3: near '{': not a valid number
dns_master_load: wisenet.lan.zone:5: unexpected end of line
dns_master_load: wisenet.lan.zone:4: unexpected end of input
dns_master_load: wisenet.lan.zone:7: unexpected end of line
dns_master_load: wisenet.lan.zone:6: unexpected end of input
dns_master_load: wisenet.lan.zone:9: unexpected end of line
dns_master_load: wisenet.lan.zone:8: unexpected end of input
zone wisenet.lan/IN: loading from master file wisenet.lan.zone failed: not a valid number