Ok I made a few changes to your SOA and NS definitions Code: $ORIGIN .
$TTL 86400
@ IN SOA mydomain.com. hostmaster.mydomain.com. (
2005030401
3H
15M
1W
1D
)
; Name Servers
NS ns1.mydomain.com.
NS ns2.mydomain.com.
$ORIGIN mydomain.com.
; Public
ns1 A nnn.nnn.nnn.nnn <- Should be yout servers IP
ns2 A nnn.nnn.nnn.nnn <- Should be your servers IP
www A xxx.xxx.xxx.xxx
First of all, there is no point of creating a CNAME that is eq to the A record.
But more important, your nameserver can't be 127.0.0.1, how would the rest of the world find you? The IP should be your external IP.
A small suggestion, but it's just my $.05 oppinion, when you set the serial number of your SOA, keep a good numbering system so you really can trouble shoot your config in an easy maner. My principle is that I use the date of today, with a postfix of NN, which would representate the number of changes I made during this day.
Also make shure that you spell everything correctly, otherwise you will end up in trouble.
Finaly, how about your "/etc/named.conf" file?
How have you configured that one? |