LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-24-2013, 11:22 AM   #1
ab_city004
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Rep: Reputation: Disabled
Help me on DNS BIND Configuration


After I have configured my /etc/named.conf and /var/named/domain.
I try to start dns server via service named restart and it was not successful,pls check my confs files and log,am waiting for any possible solution.
/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.
//

options {
listen-on port 53 { 127.0.0.1; 192.168.1.9; };
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; 192.168.1.0/24; };
allow-transfer { localhost; 192.168.1.9; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

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

zone "." IN {
type hint;
file "named.ca";
};
zone "ostechnix.com" IN {
type master;
file "fwd.ostechnix.com";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "rev.ostechnix.com";
allow-update { none; };
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

/var/named/fwd.ostechnix.com
$TTL 86400
@ IN SOA masterdns.ostechnix.com. root.ostechnix.com. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS masterdns.ostechnix.com.
@ IN NS slavedns.ostechnix.com.
masterdns IN A 192.168.1.9
slavedns IN A 192.168.1.201

/var/named/rev.ostechnix.com
$TTL 86400
@ IN SOA masterdns.ostechnix.com. root.ostechnix.com. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS masterdns.ostechnix.com.
@ IN NS slavedns.ostechnix.com.
masterdns IN A 192.168.1.9
slavedns IN A 192.168.1.201
9 IN PTR masterdns.ostechnix.com.
201 IN PTR slavedns.ostechnix.com.

and here is my service named restart message
Stopping named: [ OK ]
Starting named:
Error in named configuration:
fwd.ostechnix.com:11: unknown RR type 'masterdns'
fwd.ostechnix.com:12: unknown RR type 'slavedns'
zone ostechnix.com/IN: loading from master file fwd.ostechnix.com failed: unknown class/type
zone ostechnix.com/IN: not loaded due to errors.
_default/ostechnix.com/IN: unknown class/type
zone 1.168.192.in-addr.arpa/IN: loaded serial 2011071001
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: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
[FAILED]
pls,i need u guys help.
 
Old 06-24-2013, 11:47 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Error in named configuration:
fwd.ostechnix.com:11: unknown RR type 'masterdns'
fwd.ostechnix.com:12: unknown RR type 'slavedns'
I guess you have one (or more) blank space(s) before masterdns and slavedns RRs, but cannot be sure as you don't use CODE tags to include your configs. The zone file should look like this:
Code:
$TTL 86400
@ IN SOA masterdns.ostechnix.com. root.ostechnix.com. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS masterdns.ostechnix.com.
@ IN NS slavedns.ostechnix.com.
masterdns IN A 192.168.1.9
slavedns IN A 192.168.1.201
BTW you should remove the 2 A RRs from the reverse zone:
Code:
$TTL 86400
@ IN SOA masterdns.ostechnix.com. root.ostechnix.com. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS masterdns.ostechnix.com.
@ IN NS slavedns.ostechnix.com.
9 IN PTR masterdns.ostechnix.com.
201 IN PTR slavedns.ostechnix.com.
Regards

Last edited by bathory; 06-24-2013 at 12:47 PM. Reason: typos
 
Old 07-04-2013, 05:38 AM   #3
ab_city004
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
sorry for late response.
The problem is halfly resolved.
Thanks
 
  


Reply



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
BIND IPv6 DNS Server Configuration austinium Linux - Server 3 07-17-2012 09:54 AM
[SOLVED] DNS Configuration (BIND) druisgod Linux - Server 2 04-19-2012 01:37 PM
bind dns configuration help anurajr Linux - Newbie 4 01-02-2012 06:22 AM
configuration DNS ,bind server Tomas12345 Linux - Newbie 1 06-29-2009 08:42 AM
DNS configuration with bind snipersock Linux - Networking 6 08-24-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:43 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