LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2011, 06:21 PM   #1
mkind
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
CentOS 6 + DNS Bind issues..please help


Hello!
I'm trying to setup DNS Bind in CentOS 6, but without success. If you have some free time, could you look please?
I'm really don't know what to do..

What I've used to learn:
http://www.linuxquestions.org/questi...server-651880/
http://www.server-world.info/en/note...OS_6&p=dns&f=1

So,
My IP 212.110.139.66 (static)
DNS1: 212.110.128.16
DNS2: 212.110.128.65

and after DLink DIR-120 it translates into
DHCP IP: 192.168.24.101
DNS/Gateway: 192.168.24.1

Configuration files below:

/etc/resolf.conf :

domain businessletter.name
search businessletter.name
nameserver 212.110.128.16 (here tried to write 192.168.24.1)
nameserver 212.110.128.65

/etc/hosts :

192.168.24.101 businessletter.name
127.0.0.1 localhost.localdomain localhost
::1 businessletter.name localhost.localdomain localhost

/etc/named.conf :

options {
listen-on-v6 { none; };
directory "/var/named/";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/named_mem_stats.txt";
allow-query { any; };
allow-transfer { any; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
bindkeys-file "/etc/named.iscdlv.key";
};

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

view "internal" {
match-clients {
localhost;
192.168.24.101;
};
zone "." IN {
type hint;
file "named.ca";
};
zone "businessletter.name" IN {
type master;
file "businessletter.name.lan";
allow-update { none; };
};
zone "101.24.168.192.in-addr.arpa" IN {
type master;
file "101.24.168.192.db";
allow-update { none; };
};

view "external" {
match-clients { any; };
allow-query { any; };
recursion no;
zone "businessletter.name" IN {
type master;
file "businessletter.name.wan";
allow-update { none; };
};
zone "66.139.110.212.in-addr.arpa" IN {
type master;
file "66.139.110.212.db";
allow-update { none; };
};
};

/var/named/businessletter.name.lan :

$TTL 86400
@ IN SOA server.businessletter.name. root.businessletter.name. (
2011080401;
3600;
1800;
604800;
86400;
)

IN NS server.businessletter.name.
IN A 192.168.24.1
IN MX 10 server.businessletter.name.

server IN A 192.168.24.1

/var/named/businessletter.name.wan :

$TTL 86400
@ IN SOA server.businessletter.name. root.businessletter.name. (
2011080401;
3600;
1800;
604800;
86400;
)

IN NS server.businessletter.name.
IN A 212.110.128.16
IN MX 10 server.businessletter.name.

server IN A 212.110.128.16

/var/named/101.24.168.192.db :

$TTL 86400
@ IN SOA server.businessletter.name. root.businessletter.name. (
2011080401;
3600;
1800;
604800;
86400;
)

IN NS server.businessletter.name.
IN PTR businessletter.name.
IN A 255.255.255.0

1 IN PTR server.businessletter.name.

/var/named/66.139.110.212.db :

$TTL 86400
@ IN SOA server.businessletter.name. root.businessletter.name. (
2011080401;
3600;
1800;
604800;
86400;
)

IN NS server.businessletter.name.
IN PTR businessletter.name.
IN A 255.255.255.248

16 IN PTR server.businessletter.name.

-------------------------------
And what gives "/etc/rc.d/init.d/named restart" (or "service named start"):

Error in named configuration:
zone businessletter.name/IN: loaded serial 2011080401
zone 101.24.168.192.in-addr.arpa/IN: loaded serial 2011080401
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
businessletter.name.wan:2: unknown RR type 'server.businessletter.name.'
zone businessletter.name/IN: loading from master file
businessletter.name.wan failed: unknown class/type
zone businessletter.name/IN: not loaded due to errors.
external/businessletter.name/IN: unknown class/type
zone 66.139.110.212.in-addr.arpa/IN: loaded serial 2011080401
 
Old 08-06-2011, 04:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Hi,

Quote:
businessletter.name.wan:2: unknown RR type 'server.businessletter.name.'
Line 2 looks ok, but since you didn't used CODE tags to include config/zone files, it's difficult to read them correctly.
There should be some kind of error, like a blank space that is not needed, or something like that. Try the following that is formatted the correct way and see what you get:
Code:
$TTL 86400
@ IN SOA server.businessletter.name. root.businessletter.name. (
2011080402;          increase serail
3600;
1800;
604800;
86400;
)

  IN NS server.businessletter.name.
  IN A 212.110.128.16
  IN MX 10 server.businessletter.name.

server IN A 212.110.128.16
You can also check the zone with:
Code:
named-checkzone businessletter.name /var/named/businessletter.name.wan
Regards

Last edited by bathory; 08-06-2011 at 04:51 AM.
 
  


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
[SOLVED] CentOS BIND Local DNS server samarudge Linux - Server 6 11-29-2010 11:33 AM
[SOLVED] Override real DNS entries with BIND (Centos 5.3) orthogonal3 Linux - Server 2 08-14-2009 04:42 AM
centos 4.4 and bind named performance issues kbensch Linux - Networking 3 01-09-2007 11:31 PM
BIND DNS issues joel112 Linux - Software 3 05-31-2006 05:03 AM
DNS issues with BIND xemous Linux - Networking 6 01-12-2005 12:18 PM


All times are GMT -5. The time now is 07:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration