Help with Bind

General support questions
Post Reply
peterp69
Posts: 1
Joined: 2011/09/16 06:47:22

Help with Bind

Post by peterp69 » 2011/09/17 20:29:20

I have been using Windows 2003 to run DNS, IIS, PHP, MySQL on one box and Kerio Connect email server on another box. I am tired of paying for Microsoft licenses so I am converting over to using CentOS 6.0. I had no problems converting over and securing Apache, PHP, MySQL and linux version of Kerio Connect email server but am having problems with BIND. Since I am not familiar with BIND all that much I used webmin to help me configure it. I secured the service using chroot. I don't know if I even configured the options correctly for multi domain server. To sum up the problem that I need help with, I am able to resolve to every domain that I am hosting web pages for and email services but when trying to send an email from the internet to these domains they always bounce back. The only domain that I can send emails to is the primary domain (domain1 listed in the files below). I verified that the CentOS firewall is opened for port 53/TCP and 53/UDP. HELP PLEASE!!!!!!!

Here is my config file for the 1st domain (I replaced the domain names and IP in these files for security reasons) domain1.com.hosts:

[code]
$ttl 60M
domain1.com. IN SOA ns1.domain1.com. webmaster@domain1.com. (
1315977665
15M
10M
1440M
10M )
domain1.com. IN NS ns1.
mail.domain1.com. IN MX 10 123.123.123.68
www.domain1.com. IN A 123.123.123.66
mail.domain1.com. IN A 123.123.123.68
domain1.com. IN A 123.123.123.66
[/code]
Here is my config file for the 2nd domain domain2.com.hosts:

[code]
$ttl 60M
domain2.com. IN SOA ns1.domain1.com. webmaster@domain1.com. (
1316069249
15M
10M
1440M
10M )
domain2.com. IN NS ns1.
mail.domain2.com. IN MX 10 123.123.123.68
www.domain2.com. IN A 123.123.123.66
mail.domain2.com. IN A 123.123.123.68
[/code]
Here is my named.conf file:

[code]
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
};

zone "." {
type hint;
file "/etc/db.cache";
};

zone "domain1.com" {
type master;
file "/var/named/domain1.com.hosts";
};
controls {
};
zone "domain2.com" {
type master;
file "/var/named/domain2.com.hosts";
};
[/code]
Please help me figure out that is going on here.

[Moderator edited to inset [i]code[/i] tags so as to preserve the formatting.]

Post Reply