LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-29-2009, 06:23 AM   #1
m5it
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Bind9 - Problem with two hosts.


Hello all.

I cant serve two host with bind. I think problem is in named.conf.local. When i uncomment both zone setting then it failed to reload or reboot. If is one commented out then it work.

Here it is (named.conf.local) example:
Code:
//zone "example2.eu" {
//  type master;
//  file "/etc/bind/zones1/example2.eu.zone";
//};
//
//zone "197.255.195.in-addr.arpa" {
//  type master;
//  file "/etc/bind/zones1/rev.197.255.195.in-addr.arpa";
//};


zone "example1.org" {
  type master;
  file "/etc/bind/zones/example1.org.zone";
};

zone "197.255.195.in-addr.arpa" {
  type master;
  file "/etc/bind/zones/rev.197.255.195.in-addr.arpa";
};
 
Old 09-29-2009, 06:49 AM   #2
try2siva
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Thumbs up wat is ur os version

Quote:
Originally Posted by m5it View Post
Hello all.

I cant serve two host with bind. I think problem is in named.conf.local. When i uncomment both zone setting then it failed to reload or reboot. If is one commented out then it work.

Here it is (named.conf.local) example:
Code:
//zone "example2.eu" {
//  type master;
//  file "/etc/bind/zones1/example2.eu.zone";
//};
//
//zone "197.255.195.in-addr.arpa" {
//  type master;
//  file "/etc/bind/zones1/rev.197.255.195.in-addr.arpa";
//};


zone "example1.org" {
  type master;
  file "/etc/bind/zones/example1.org.zone";
};

zone "197.255.195.in-addr.arpa" {
  type master;
  file "/etc/bind/zones/rev.197.255.195.in-addr.arpa";
};
Hi,

What is your OS version.

Thanks
siva
 
Old 09-29-2009, 07:31 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,971

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
When i uncomment both zone setting then it failed to reload or reboot. If is one commented out then it work.
When you say uncomment both zones you mean the first 2 (example2.eu, 197.255.195.in-addr.arpa)?
You can uncomment the example2.eu zone, but not the reverse, because you define it again (with the last zone statement). You cannot have 2 reverse zones for the same subnet pointing to different hosts.. So try the following and it should work:
Code:
zone "example2.eu" {
  type master;
  file "/etc/bind/zones1/example2.eu.zone";
};

zone "example1.org" {
  type master;
  file "/etc/bind/zones/example1.org.zone";
};

zone "197.255.195.in-addr.arpa" {
  type master;
  file "/etc/bind/zones/rev.197.255.195.in-addr.arpa";
};
If it doesn't check your logfiles for hints.

Regards
 
Old 09-30-2009, 05:54 AM   #4
m5it
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Bathory - tnx.. it work that way you have writed..

tnx!

ps: that forum rules!
 
  


Reply

Tags
free, live


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
Problem with Bind9 rytec Linux - Server 7 09-02-2009 05:26 PM
BIND9 - I can resolve all hosts but not internal domain todd_dsm Linux - Server 5 04-06-2009 10:11 PM
UBUNTU bind9 problem xokaido Linux - Server 17 07-28-2008 03:31 AM
emergency bind9 problem Ratclaws Linux - Software 0 09-02-2005 07:13 PM
Bind9 problem WiWa Linux - Networking 3 06-06-2004 06:27 AM


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