Alright so I followed a three part video tutorial on youtube called dansclasses, when I finished I tried to run the dns server by typing in the terminal
Code:
service named start
and it wouldn't start, I got this huge error:
Code:
Starting named:
Error in named configuration:
dns_rdata_fromtext: neccdata.com.zone:8: near 'IN': extra input text
zone neccdata.com/IN: loading from master file neccdata.com.zone failed: extra input text
zone neccdata.com/IN: not loaded due to errors.
_default/neccdata.com/IN: extra input text
dns_rdata_fromtext: neccdata.com.rr.zone:8: near '@': extra input text
zone 12.168.192.in-addr.arpa/IN: loading from master file neccdata.com.rr.zone failed: extra input text
zone 12.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/12.168.192.in-addr.arpa/IN: extra input text
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
[FAILED]]
Here is a cat scan of my neccdata.com.zone (Forward lookup zone)
Code:
$ORIGIN neccdata.com.
$TTL 86400
@ IN SOA dns1.neccdata.com. hostmaster.neccdata.com. (
2001062501 ;serial
21600 ;refresh after 6 hours
3600 ;retry after 1 hour
604800 ;expier after 1 week
86400 ;minimum TTL 1 day
IN NS dns1.neccdata.com.
IN MX 10 mail.neccdata.com.
IN A 192.168.12.177
dns1 IN A 192.168.12.177
necc-centos IN A 192.168.12.177
ftp IN A 192.168.12.177
mail IN CNAME necc-centos
www IN CNAME necc-centos
Here is a cat scan of my neccdata.com.rr.zone (Reverse lookup zone)
Code:
$ORIGIN 12.168.192.in-addr.arpa.
$TTL 86400
@ IN SOA dns1.neccdata.com. hostmaster.neccdata.com. (
2001062501 ;serial
21600 ;refresh after 6 hours
3600 ;retry after 1 hour
604800 ;expier after 1 week
86400 ;minimum TTL 1 day
@ IN NS necc-centos.neccdata.com.
1 IN PTR necc-centos.mail.neccdata.com.
2 IN PTR necc-centos.neccdata.com.
3 IN PTR necc-centos.neccdata.com.
4 IN PTR necc-centos.neccdata.com.
Bookmarks