LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-25-2009, 04:26 PM   #1
liche24
LQ Newbie
 
Registered: Jan 2009
Posts: 29

Rep: Reputation: 15
Home DNS server problems


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

Last edited by liche24; 01-25-2009 at 04:27 PM.
 
Old 01-25-2009, 05:01 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Code:
# Forward Zone for wisenet.lan domain
zone "wisenet.lan" IN {
type master;
file "/var/named/chroot/var/named/wisenet.lan.zone";
};
"/var/named/chroot/var/named/wisenet.lan.zone"
should be just "wisenet.lan.zone" because you define the directory globally above as "/var/named" (whether it is in chroot or not does not matter because it will still be in the same location from named's point-of-view).

NetworkManager is the most likely cause of the resolv.conf (among other possible files) to revert/change...


Code:
$TTL 1D

wisenet.lan. IN SOA ns1.wisenet.lan. cwise.wisenet.lan. {
200901181 ;
28800 ; refresh slaves
7200 ; retry
604800 ; expire
86400 ; Negative TTL
}
Try using () instead of {} and see if that does not help.
 
Old 01-25-2009, 07:04 PM   #3
liche24
LQ Newbie
 
Registered: Jan 2009
Posts: 29

Original Poster
Rep: Reputation: 15
Thank you, a very simple fix with the (. I've been on 3 different blogs/groups, and no help, I can't thank you enough. I'm having trouble with Network Manager changing the /etc/resolv.conf. My dsn server checkzone's comes out clean, but I can't resolve any pc's on my network, it keeps replying from my ISP dns. Should I kill network manager?

I have yum remove NetworkManager and have also figured out why my box would revert, I had to go back and change my sysconfig/network-scripts/ifcfg-eth0 file and change DNS1 to 127.0.0.1, or should this be my machines ip address versus loopback? I still can't find machines on my network by doing a nslookup <hostname>, but I can use an IP addr and find the alias and domain.

Problem solved, I had created a swp in my named.conf. Deleted the swap and all is good!

Last edited by liche24; 01-25-2009 at 08:30 PM. Reason: Update
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Help Setting Up a Testing Server at Home Hyden P Lainsite Linux - Server 1 02-17-2008 02:34 PM
HOME DNS server good idea or not? hewittrj Linux - Networking 7 10-20-2007 09:13 PM
External home dns server m2azer Linux - Server 1 06-01-2007 12:07 PM
DNS server at home fbfd1338 Linux - Networking 6 10-07-2004 08:18 AM
Home DNS Server khurtwilliams Linux - Networking 5 06-05-2004 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration