need help with BIND9
Hello,
I need help setting up nameservers for my own domain. The IPs and
domains have been changed for privacy ;-)
I have a static IP on an ADSL line (i.e public IP 1.1.1.1).
I have a router that has a DMZ set up that is pointing to my deb box
(local IP 10.10.10.10)
I have a domain (mydomain.com) that I bought and I've set it up to point
to NS1.MYDOMAIN.COM at the public IP 1.1.1.1
I want to set up my deb box as a web/ftp/nameserver server with
MySQL/PHP on it.
So far, I've configured LAMP on it. I'm having problems with BIND (or so
I think). I've read all over that "DNS IS A SIMPLE BUT EASILY
MISCONFIGURED SYSTEM"
I've confirmed that NS1.MYDOMAIN.COM points to 1.1.1.1 as
http://ns1.mydomain.com produces my apache page
I'm using BIND9.
named.conf has this line at the bottom:
include "/etc/bind/named.conf.local";
my named.conf.local has this:
zone "mydomain.com" {
type master;
file "/etc/bind/mydomain.db";
};
zone "10.10.10.in-addr.arpa" {
type master;
file "/etc/bind/10.10.10.rev";
};
my mydomain.db has this:
; BIND data file for mydomain.db
; /var/named/mydomain.db
;
$TTL 1h
@ SOA ns1.mydomain.com. root.mydomain.com. (
2007110805; Serial (date + two digit serial)
10800 ; Refresh (3 hours)
3600 ; Retry (1 hour)
86400 ; Expire (1 day)
60 ) ; Default TTL 1 min
NS ns1.mydomain.com.
MX mail.mydomain.com.
A 1.1.1.1
ns1 A 1.1.1.1
mail A 1.1.1.1
www A 1.1.1.1
It has been over 5 days, and www.mydomain.com still has not resolved to
1.1.1.1
What could be the problem?
DIG only produces a QUESTION SECTION but no answers,etc:
; <<>> DiG 9.3.4 <<>> mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 36978
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mydomain.com. IN A
;; Query time: 1151 msec
;; SERVER: 66.51.205.100#53(66.51.205.100)
;; WHEN: Wed Nov 14 00:49:53 2007
;; MSG SIZE rcvd: 32
I've also done a zonecheck report, and right away it spits out "Unable
to find primary nameserver (SOA)"
Please help! Thank you very much!
Reply to: