LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-19-2008, 02:18 PM   #1
qentsei
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Angry Fedora care 8 DNS Setup


Hi Guys,

This is my project work that I am doing,I have done the network configuration,and get to the internet did all the updates,
I configured my DNS after starting it this are ERROR I am having. can
someone go through my configuration and correct me.
I am useing FEDORA CORE 8

Error in named configuration:
dns_master_load: zones/springs.db:22: unexpected end of line
dns_master_load: zones/springs.db:21: unexpected end of input
zones/springs.db: file does not end with newline
zone springsnet.com/IN: loading from master file zones/springs.db failed: unexpected end of input
_default/springsnet.com/IN: unexpected end of input
dns_rdata_fromtext: zones/springs.rev:2: near '2008052401': bad name (check-names)
dns_rdata_fromtext: zones/springs.rev:10: near 'star.springsnet.com': bad name (check-names)
zone 0.168.192.IN_ADDR.ARPA/IN: loading from master file zones/springs.rev failed: bad name (check-names)
_default/0.168.192.IN_ADDR.ARPA/IN: bad name (check-names)
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: NS '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa' has no address records (A or AAAA)
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: NS '1.0.0.127.in-addr.arpa' has no address records (A or AAAA)
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: NS '0.in-addr.arpa' has no address records (A or AAAA)
zone 0.in-addr.arpa/IN: loaded serial 0



/var/named/chroot/var/named/zones/springs.rev


$TTL 86400
@ IN SOA star.springsnet.com.root.springsnet.com. (
2008052401 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ) ; default ttl


@ IN NS star.springsnet.com
15 IN PTR star.springsnet.com




/var/named/chroot/var/named/zones/springs.db


$TTL 86400
@ IN SOA star.springsnet.com. root.springsnet.com. (
2008052401 ; serial
10800 ; refresh after 3 hours
3600 ; retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL of 1 day
springsnet.com. IN NS star.springsnet.com.
springsnet.com. IN MX 10 star.springsnet.com.
springsnet.com. IN A 192.168.0.15

$ORIGIN springsnet.com.

mail IN CNAME star.springsnet.com.
ns IN CNAME star.springsnet.com.
dns IN CNAME star.springsnet.com.
www IN CNAME star.springsnet.com.
smtp IN CNAME star.springsnet.com.
popd IN CNAME star.springsnet.com.
pop IN CNAME star.springsnet.com.



/car/named/chroot/etc/named.conf

named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver 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.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//

options {
listen-on port 53 { 127.0.0.1;192.168.0.15;};
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 { localhost; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "hints";
};

zone "springsnet.com" IN {
type master;
file "zones/springs.db";
};

zone "0.168.192.IN_ADDR.ARPA" {
type master;
file "zones/springs.rev";
};

include "/etc/named.rfc1912.zones";
~

thanks in advance
 
Old 06-19-2008, 02:37 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Your editor perhaps left off a newline. Which editor did you use?

You can use the ORIGIN statement to your advantage - that's its purpose. See the difference:

Code:
$TTL 86400
$ORIGIN springsnet.com.

@ IN SOA star root (
        2008052401 ; serial
        10800 ; refresh after 3 hours
        3600 ; retry after 1 hour
        604800 ; Expire after 1 week
        86400 ) ; Minimum TTL of 1 day

@       IN NS   star
@       IN MX 10 star
@       IN A 192.168.0.15


mail    IN CNAME star
ns      IN CNAME star
dns     IN CNAME star
www     IN CNAME star
smtp    IN CNAME star
popd    IN CNAME star
pop     IN CNAME star
Try and od -bc on your zones/springs.db file. Show the last line of its output.
 
  


Reply

Tags
help



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to setup DNS on Fedora 8 for LAN? jfernandez Linux - Networking 8 02-18-2008 12:53 AM
Nedd help in to setup FLZ and RLZ DNS on fedora, I am basically from windows mrajeshwarrao Linux - Server 1 11-01-2007 01:18 PM
Dynamic DNS Setup for either Fedora Core client Dimensional Linux - Networking 2 09-18-2007 05:48 AM
Setup of DNS with Fedora Core 4 for Email Server Hyperbolik Linux - Networking 2 05-03-2006 08:24 AM
DNS Setup, Does anyone care to help me? Asdsl Linux - General 1 03-16-2003 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:52 PM.

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