Hi,
I’ve compiled and installed nsd and configured nsd without any problems as far as I can see, my problem is that when i try to build the zone files I get loads of error message about unrecognised characters and the result is that the zone information isn’t compiled. I have looked at sample zone files from the internet and can’t find anything wrong with mine. I’ve just migrated from windows and am now using redhat 9. I am impressed with NSD so far, it seems so simple to use and only does exactly what I need of a DNS server. Below is my zone file, the IP’s have been altered, could you please point in the right direction. I am new to linux so please be gentle 
;
; DNS master file for pdgaskell.co.uk
;
@ 7200 IN SOA ns1 webmaster.pdgaskell.co.uk. (
2004062917
7200
3600
8294400
7200 )
@ 7200 IN A 123.123.123.123
@ 7200 IN MX 10 mail.pgwww.net.
@ 7200 IN NS ns1
@ 7200 IN NS ns2
ns1 7200 IN A 123.123.123.123
ns2 7200 IN A 123.123.123.123
www 7200 IN A 123.123.123.123
thanks
philip
Philip Gaskell wrote:
Hi,
I've compiled and installed nsd and configured nsd without any problems as far as I can see, my problem is that when i try to build the zone files I get loads of error message about unrecognised characters and the result is that the zone information isn't compiled. I have looked at sample zone files from the internet and can't find anything wrong with mine. I've just migrated from windows and am now using redhat 9. I am impressed with NSD so far, it seems so simple to use and only does exactly what I need of a DNS server. Below is my zone file, the IP's have been altered, could you please point in the right direction. I am new to linux so please be gentle 
This may be caused by DOS/Windows end-of-line characters (CR LF) instead of the Unix end-of-line character (LF). On Linux you can use the "dos2unix" command to convert the file. Does this solve your problem?
Erik
[On 30 Jun, @09:11, Philip wrote in "Master Zone Files ..."]
Hi,
I've compiled and installed nsd and configured nsd without any problems as
far as I can see, my problem is that when i try to build the zone files I
get loads of error message about unrecognised characters and the result is
hmmm, very strange. Which version of NSD are you using, and what are
the actual errors you are seeing?
;
; DNS master file for pdgaskell.co.uk
;
@ 7200 IN SOA ns1 webmaster.pdgaskell.co.uk. (
2004062917
7200
3600
8294400
7200 )
@ 7200 IN A 123.123.123.123
@ 7200 IN MX 10 mail.pgwww.net.
@ 7200 IN NS ns1
@ 7200 IN NS ns2
ns1 7200 IN A 123.123.123.123
ns2 7200 IN A 123.123.123.123
www 7200 IN A 123.123.123.123
compiling the above zone with the config below:
% cat users.conf
zone pdgaskell.co.uk db.pdg
% ../../zonec -v -f nsd.db users.conf
zonec: reading zone "pdgaskell.co.uk".
zonec: processed 8 RRs in "pdgaskell.co.uk".
zonec: done with 0 errors.
This is with nsd 2.1.x,
grtz Miek