PDA

View Full Version : BIND DNS + Webmin CentOS 5.1


Forgott3n
19th June 2008, 06:07
Hello!

I installed BIND and configured via Webmin in the following manner:

$ttl 38400
sohipitmhz.com. IN SOA ns1.sohipitmhz.com. justin\.bull.c3studios.ca. (
1213586206
10800
3600
604800
38400 )

sohipitmhz.com. IN NS ns1.sohipitmhz.com.
sohipitmhz.com. IN NS ns2.sohipitmhz.com.

ns1.sohipitmhz.com. IN A 24.80.213.124
ns2.sohipitmhz.com. IN A 24.80.213.124

sohipitmhz.com. IN A 24.80.213.124

localhost.sohipitmhz.com. IN A 127.0.0.1

sohipitmhz.com. IN MX 0 sohipitmhz.com.

www IN CNAME sohipitmhz.com.
mail IN CNAME sohipitmhz.com.
bullbox IN A 24.80.213.124

and

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

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

zone "sohipitmhz.com" {
type master;
file "/var/named/sohipitmhz.com.hosts";
};


I have BIND running with chroot (/var/named/chroot/) and LAMP. The Postfix hasn't been properly configured yet.

Here are the details:

Hostname: bullbox.sohipitmhz.com
IP Address: 24.80.213.124
Domain: sohipitmhz.com


So for some reason it doesn't work! Am I missing something in my configuration? Both nameservers are the same box.

Thank you!

falko
20th June 2008, 14:04
You need a glue record for sohipitmhz.com: http://en.wikipedia.org/wiki/Domain_Name_System#Circular_dependencies_and_glue_ records

Forgott3n
20th June 2008, 17:25
So the modified configuration would look like this?

$ttl 38400
sohipitmhz.com. IN SOA ns1.sohipitmhz.com. justin\.bull.c3studios.ca. (
1213586206
10800
3600
604800
38400 )

sohipitmhz.com. IN NS ns1.sohipitmhz.com.
sohipitmhz.com. IN NS ns2.sohipitmhz.com.

ns1.sohipitmhz.com. IN A 24.80.213.124
ns2.sohipitmhz.com. IN A 24.80.213.124

sohipitmhz.com. IN A 24.80.213.124

localhost.sohipitmhz.com. IN A 127.0.0.1

sohipitmhz.com. IN MX 0 sohipitmhz.com.

www IN CNAME sohipitmhz.com.
mail IN CNAME sohipitmhz.com.
bullbox IN A 24.80.213.124
ns1 IN A 192.168.1.133 // LAN IP
ns2 IN A 192.168.1.133 // LAN IP


Sorry, searching for definitive instructions of glue records has turned up mixed results.

falko
21st June 2008, 11:20
No, you must ask your registrar to set up glue records for your domain. That's nothing you can do yourself.