LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Bind9 - Problem with two hosts. (http://www.linuxquestions.org/questions/linux-server-73/bind9-problem-with-two-hosts-758417/)

m5it 09-29-2009 05:23 AM

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";
};


try2siva 09-29-2009 05:49 AM

wat is ur os version
 
Quote:

Originally Posted by m5it (Post 3700393)
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

bathory 09-29-2009 06:31 AM

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

m5it 09-30-2009 04:54 AM

Bathory - tnx.. it work that way you have writed..

tnx! :)

ps: that forum rules! :)


All times are GMT -5. The time now is 05:08 PM.