LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-29-2009, 05: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, 05: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, 06:31 AM   #3
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:
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, 04: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



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

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

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