LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-10-2005, 03:46 AM   #1
Webbie
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
Reverse DNS


Hey guyz, alright, i had my reverse dns working for awhile now, then all the sudden something happend to my zone files, so i had to remake them, now when i redid my reverse.zone file and added the PTR records im getting this from bind when i restart the services

Oct 10 00:19:02 web named[14032]: zone 177.39.65.in-addr.arpa/IN: loading master file /var/named/reverse.zone.db: unexpected end of input
Oct 10 00:19:02 web named[14032]: dns_rdata_fromtext: /var/named/reverse.zone.db:8: near eol: unexpected end of input
Oct 10 00:19:02 web named[14032]: zone reverse.zone/IN: loading master file /var/named/reverse.zone.db: unexpected end of input
 
Old 10-10-2005, 12:49 PM   #2
sshoemaker
LQ Newbie
 
Registered: Aug 2005
Location: Pennsylvania
Distribution: FC4
Posts: 14

Rep: Reputation: 0
reverse dns

I don't know for sure since I haven't seen your zone file, but I would guess that there's something on line 8 of your file that there is a new line before there should be.

It is expecting something like " IN PTR localhost" and got something like " IN PTR ".
 
Old 10-10-2005, 04:23 PM   #3
Webbie
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
here's what my reverse looks like, sorry that i didnt post it right away.


$ttl 1400
$ORIGIN 177.39.65.in-addr.arpa.
@ IN SOA ns1.finalsolutions.ca. (
2005100102 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN PTR localhost

NS ns1.finalsolutions.ca.
NS ns2.finalsolutions.ca.

178 IN PTR web.finalsolutions.ca.
179 IN PTR ns1.finalsolutions.ca.
180 IN PTR ns2.finalsolutions.ca.
181 IN PTR finalsolutions.ca.
182 IN PTR secure.finalsolutions.ca.
183 IN PTR bnc.finalsolutions.ca.
184 IN PTR gamersedge.ca.
186 IN PTR got-owned.ca.
187 IN PTR you.got-owned.ca.
 
Old 10-10-2005, 06:03 PM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Your SOA record is missing the e-mail address. I added netadmin.finalsolutions.com for reference (see below). Plus, I deleted the localhost definition (should be in its own zone file) along with adding @ for the NS records for clarity.

Code:
[root@excelsior scowles]# cat test.db
$ttl 1400
$ORIGIN 177.39.65.in-addr.arpa.
@ IN SOA ns1.finalsolutions.ca. (
        netadmin.finalsolutions.com.
        2005100102 ; Serial
        28800 ; Refresh
        14400 ; Retry
        3600000 ; Expire
        86400 ) ; Minimum
 
@       IN      NS ns1.finalsolutions.ca.
@       IN      NS ns2.finalsolutions.ca.
 
178     IN      PTR web.finalsolutions.ca.
179     IN      PTR ns1.finalsolutions.ca.
180     IN      PTR ns2.finalsolutions.ca.
181     IN      PTR finalsolutions.ca.
182     IN      PTR secure.finalsolutions.ca.
183     IN      PTR bnc.finalsolutions.ca.
184     IN      PTR gamersedge.ca.
186     IN      PTR got-owned.ca.
187     IN      PTR you.got-owned.ca.

[root@excelsior scowles]# named-checkzone  177.39.65.in-addr.arpa. test.db
zone 177.39.65.in-addr.arpa/IN: loaded serial 2005100102
OK
[root@excelsior scowles]#
]
 
Old 10-10-2005, 08:49 PM   #5
Webbie
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Finaly got it working, thanx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No reverse DNS??? DragonM15 Linux - Networking 5 11-22-2005 01:06 AM
reverse DNS in C? Thinking Programming 3 04-27-2005 01:05 PM
Reverse DNS Snerkel Linux - Networking 11 04-19-2005 01:25 PM
Reverse DNS davespink Linux - Networking 2 02-27-2005 07:44 PM
Reverse DNS Pyro2k4 Linux - Networking 8 09-06-2004 05:59 PM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration