bind problems in centos 6.0

General support questions
malak33
Posts: 14
Joined: 2011/12/10 14:24:05

bind problems in centos 6.0

Post by malak33 » 2011/12/10 14:39:16

hi guys, im kinda new here. Just about finished school and trying to set up a centos server to go for some certs. Anyway, I'm trying to get my DNS up and running I'm having some troubles.

This is also on a virtual box. If you need anymore information just let me know.
here is the log messages that generate when i try to do a
service named restart:

[code]
Error in named configuration:
zone localhost/IN: loaded serial 2006123106
dns_rdata_fromtext: 127.0.0.rev:7: near 'IN': extra input text
zone 0.0.127.in-addr.arpa/IN: loading from master file 127.0.0.rev failed: extra input text
zone 0.0.127.in-addr.arpa/IN: not loaded due to errors.
_default/0.0.127.in-addr.arpa/in: extra input text
zone example.org/IN: loaded serial 2009123106
dns_rdata_fromtext: example.org.rev:3: near '3H': not a valid number
zone 15.2.0.10.in-addr.arpa/IN: loading from master file example.org.rev failed: not a valid number
zone 15.2.0.10.in-addr.arpa/IN: not loaded due to errors.
_default/15.2.0.10.in-addr.arpa/IN: not a valid number
[/code]
Thanks guys

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: bind problems in centos 6.0

Post by TrevorH » 2011/12/10 18:13:41

[quote]
dns_rdata_fromtext: 127.0.0.rev:7: near 'IN': extra input text
zone 0.0.127.in-addr.arpa/IN: loading from master file 127.0.0.rev failed: extra input text
dns_rdata_fromtext: example.org.rev:3: near '3H': not a valid number
zone 15.2.0.10.in-addr.arpa/IN: loading from master file example.org.rev failed: not a valid number
[/quote]

So it tells you that you have two problems. One on line 7 of the file for zone 0.0.127.in-addr.arpa and one on line 3 of the file for zone 15.2.0.10.in-addr.arpa. The second one doesn't like the "3H" that you've specified (presumably meant to be 3 hours) so specifying that as 10800 will probably fix that (# of seconds in 3H). If you can't see a problem with the one on line 7 then post it here and see if someone else can.

malak33
Posts: 14
Joined: 2011/12/10 14:24:05

Re: bind problems in centos 6.0

Post by malak33 » 2011/12/10 19:50:50

i thought i saw what it was.... so i made some changes here is the new log file

[code]
Error in named configuration:
zone localhost/IN: loaded serial 2009123108
dns_rdata_fromtext: 127.0.0.rev:7: near 'IN': extra input text
zone 0.0.127.in-addr.arpa/IN: loading from master file 127.0.0.rev failed: extra input text
zone 0.0.127.in-addr.arpa/IN: not loaded due to errors.
_default/0.0.127.in-addr.arpa/in: extra input text
zone example.org/IN: loaded serial 2009123108
dns_rdata_fromtext: example.org.rev:7: near 'IN': syntax error
zone 15.2.0.10.in-addr.arpa/IN: loading from master file example.org.rev failed: syntax error
zone 15.2.0.10.in-addr.arpa/IN: not loaded due to errors.
_default/15.2.0.10.in-addr.arpa/IN: syntax error
[/code]

malak33
Posts: 14
Joined: 2011/12/10 14:24:05

Re: bind problems in centos 6.0

Post by malak33 » 2011/12/10 19:54:16

here is the /var/named/example.org.db file

[code]
$TTL 1W
@ IN SOA ns1.example.org. root (d
2009123108 ; serial
3H ; refresh
30M ; retry
20W ; expiry
1W) ; minimum
IN NS ns1.example.org.
IN NS ns2.example.org.
IN MX 10 smtp.example.org.
ns1 IN A 10.0.2.15 ;primary name server
ns2 IN A 10.0.2.16 ;secondary name server
serverA IN A 10.0.2.15
serverB IN A 10.0.2.16
smtp IN A 10.0.2.25 ;mail server
www IN CNAME serverA ;web server
ftp IN CNAME serverB ;ftp server
serverA IN TXT "Cell: 717-867-5309"
[/code]

malak33
Posts: 14
Joined: 2011/12/10 14:24:05

Re: bind problems in centos 6.0

Post by malak33 » 2011/12/10 19:56:47

here is the /var/named/example.org.rev file

[code]
$TTL 1W
@ IN SOA ns1.example.org.root (
2009123108 ; serial
10800 ; refresh
30M ; retry
2W ; expiry
1W ; minimum
IN NS ns1.example.org.
IN NS ns2.example.org.
1 IN PTR serverA.example.org. ; reverse info for serverA
2 IN PTR serverB.example.org. ; reverse info for serverB
25 IN PTR smtp.example.org. ; reverse for mailserver
[/code]

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: bind problems in centos 6.0

Post by TrevorH » 2011/12/10 21:07:19

In the /var/named/example.org.rev you are missing a close bracket ")" to match the opening one on line 2 - it should be just prior to the first line starting "IN". The other error appears to be in a file called 127.0.0.rev and you haven't posted that but I'd hazard a guess that it's exactly the same error.

malak33
Posts: 14
Joined: 2011/12/10 14:24:05

Re: bind problems in centos 6.0

Post by malak33 » 2011/12/10 22:14:39

Trevor, you are awesome!!!
it changed colors when i put in the brackets.
does it always do that?
so you know if it is correct or not?
how do i make the colors show up here on the website?
screenshot?

malak33
Posts: 14
Joined: 2011/12/10 14:24:05

Re: bind problems in centos 6.0

Post by malak33 » 2011/12/10 23:13:28

here are the screen shots, you guys are the best.
THANKS
i uploaded it to this website with screenshots because it is easier, here is the link
the file wouldn't upload to this site

http://www.slideshare.net/malak33/named-troubleshooting
let me know if you have any problems, i never used this site before

malak33
Posts: 14
Joined: 2011/12/10 14:24:05

Re: bind problems in centos 6.0

Post by malak33 » 2011/12/10 23:41:06

i was told to use www.pastebin.com instead
so here is the url to my profile http://pastebin.com/u/malak33
let me know if it works, never used this site before either

malak33
Posts: 14
Joined: 2011/12/10 14:24:05

Re: bind problems in centos 6.0

Post by malak33 » 2011/12/13 00:33:18

here is the new log that appears when i try to run it now

zone localhost/IN: loaded serial 2009123109
zone 0.0.127.in-addr.arpa/IN: loaded serial 2009123109
zone example.org/IN: loaded serial 2009123109
dns_rdata_fromtext: example.org.rev:7: near eol: unexpected end of input
zone 15.2.0.10.in-addr.arpa/IN: loading from master file example.org.rev failed: unexpected end of input
zone 15.2.0.10.in-addr.arpa/IN: not loaded due to errors.
_default/15.2.0.10.in-addr.arpa/IN: unexpected end of input

Post Reply