PDA

View Full Version : BIND with Multiple Domains on Ubuntu 8.04


phuschnickens
25 Mar 2009, 1:53pm
Let me first start by saying that I've read many of the available resources for figuring this out and I'm still having trouble. I read a post on the ubuntu forums with almost the same thread title but still can't get it right. This is a link to my thread on ubuntuforums.org link (http://ubuntuforums.org/showthread.php?t=1105586)

I want to setup one BIND DNS Server to manage records for two different public domain names. I'm running ubuntu 8.04.

I've checked this out with pingability.com and while the first zone works perfectly, the second zone has multiple errors. The errors include "No host (A) record. No MX record." (and more) Everything I read makes it looks like this is right. Please let me know if I need to provide more info. THANKS!

named.conf.local:
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "royaloakproofsite.com" {
type master;
file "/etc/bind/royaloakproofsite.com.hosts";
allow-query { any; };
allow-transfer { 66.184.65.74; };
};
zone "bosshotline.com" {
type master;
file "/etc/bind/bosshotline.com.hosts";
allow-query { any; };
allow-transfer { 66.184.65.74; };
};


royaloakproofsite.com.hosts (Zone 1):
$ttl 38400
royaloakproofsite.com. IN SOA ns1.royaloakproofsite.com. jpfulton.royaloakproofsite.com. (
1055026220
6H
1H
5D
20M )
royaloakproofsite.com. IN A 66.184.65.74
mysql IN A 66.184.65.74
www IN CNAME royaloakproofsite.com.
royaloakproofsite.com. IN NS ns1.royaloakproofsite.com.
royaloakproofsite.com. IN NS ns2.royaloakproofsite.com.
royaloakproofsite.com. IN MX 5 mail.royaloakproofsite.com.
mail IN A 66.184.65.74


bosshotline.com.hosts (Zone 2):
$ttl 38400
bosshotline.com. IN SOA ns1.royaloakproofsite.com. jpfulton.bosshotline.com. (
1055026224
6H
1H
5D
20M )
bosshotline.com. IN A 66.184.65.74
bosshotline.com. IN NS ns1.royaloakproofsite.com.
bosshotline.com. IN NS ns2.royaloakproofsite.com.
bosshotline.com. IN MX 10 mail.bosshotline.com.
mail IN A 66.184.65.74
mysql IN A 66.184.65.74
www IN CNAME bosshotline.com.


Thanks
phu

phuschnickens
25 Mar 2009, 6:50pm
This thread can be deleted... i found the solution... Thanks for the space on the forums ;)

Thrax
25 Mar 2009, 8:03pm
We don't delete legitimate threads on IC. What was the solution?

phuschnickens
25 Mar 2009, 8:35pm
We don't delete legitimate threads on IC. What was the solution?

K, wasn't sure about that.

SOLUTION:
I was wrong in my first post when I said "first master zone is working perfectly" it WAS working perfectly until I guess and checked the second zone so many times that I screwed up the first one... so I went back and fixed the first zone, once that was working I made a copy of that file, renamed appropriately and made the proper edits. "Proper edits" was, of course, the tough part. See below:

royaloakproofsite.com.hosts (master zone#1)
$ttl 38400
royaloakproofsite.com. IN SOA ns1.royaloakproofsite.com. jpfulton.royaloakproofsite.com. (
1055026251
6H
1H
5D
20M )
royaloakproofsite.com. IN A 66.184.65.74
mysql.royaloakproofsite.com. IN A 66.184.65.74
www.royaloakproofsite.com. IN CNAME royaloakproofsite.com.
ns1.royaloakproofsite.com. IN A 66.184.65.74
ns2.royaloakproofsite.com. IN A 66.184.65.74
royaloakproofsite.com. IN NS ns1.royaloakproofsite.com.
royaloakproofsite.com. IN NS ns2.royaloakproofsite.com.
mail.royaloakproofsite.com. IN A 66.184.65.74
royaloakproofsite.com. IN MX 1 royaloakproofsite.com.


bosshotline.com.hosts (master zone#2)
$ttl 38400
bosshotline.com. IN SOA ns1.royaloakproofsite.com. jpfulton.bosshotline.com (
1238003212
6H
1H
5D
20M )
bosshotline.com. IN A 66.184.65.74
mysql.bosshotline.com. IN A 66.184.65.74
www.bosshotline.com. IN CNAME bosshotline.com.
ns1.royaloakproofsite.com. IN A 66.184.65.74
ns2.royaloakproofsite.com. IN A 66.184.65.74
bosshotline.com. IN NS ns1.royaloakproofsite.com.
bosshotline.com. IN NS ns2.royaloakproofsite.com.
mail.bosshotline.com. IN A 66.184.65.74
bosshotline.com. IN MX 1 bosshotline.com.


Hope this can help someone!

thanks
phu