The format of named files isn't quite as free-form as you apparently think. :-) Compare one of mine:

$TTL 1H
@               IN  SOA         ns3.radel.com. jon.radel.com. (
                                2010100400      ; serial
                                1H              ; refresh
                                15M             ; retry
                                2W              ; expiry
                                30M )           ; minimum
                IN NS           ns.radel.com.
                IN NS           ns2.radel.com.
                IN NS           ns3.radel.com.
                IN NS           ns4.radel.com.

with yours:


$TTL    3600
OK

johannesang.com. IN  SOA host.johannesang.com.  root.johannesang.com.   (
OK; "@" in mine is shorthand for "the domain which this zone file defines", but giving the domain explicitly works fine.

2012040100        42       1d    12h     1w      3h
Starts as OK syntax, but a 42 second refresh with 1 day retry strikes me as dubious at best and then you have an extra value on the end. Actually, I suspect that 42 is actually your extra value. "2012040100" is the serial number, you know.
          Serial, Refresh, Retry, Expire, Neg. cache TTL
This line is extraneous garbage, as you've not commented it out; that's what the semi-colons do in my example. I suspect that's why one error message moans about an error in the vicinity of the "3h", as that's an extra value followed by garbage.

Missing close parenthesis.



;DNS Servers
johannesang.com.         IN      NS              host.johannesang.com.
Looks fine.

;Machine Names
host.johannesang.com.    IN      A               167.205.79.105
Looks fine

;Aliases
www                  IN      CNAME           host.johannesang.com.
Looks fine

here is my db.johannesang file
$TTL    3600

79.205.167.in-addr.arpa. IN  SOA host.johannesang.com.  root.johannesang.com.

2012040100        42       1d    12h     1w      3h
missing open and close parenthesis, extra value
          Serial, Refresh, Retry, Expire, Neg. cache TTL
extraneous garbage


Etc. You're pretty close and it should work fine after you clean up your syntax a bit.

--Jon Radel
[email protected]


Reply via email to