Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Reverse lookup from hosts file

Reverse lookup from hosts file
Thread Tools
Mac Enthusiast
Join Date: Jan 2001
Location: Most probably sitting down, London, European Union
Status: Offline
Reply With Quote
Jun 19, 2001, 10:57 AM
 
I posted this in another forum, but maybe someone here knows the answer?

Is there a way to get a reverse lookup from the entries in the "system folder references:hosts" file?
     
Mac Elite
Join Date: Mar 2001
Status: Offline
Reply With Quote
Jun 19, 2001, 05:45 PM
 
Originally posted by Clive:
<STRONG>I posted this in another forum, but maybe someone here knows the answer?

Is there a way to get a reverse lookup from the entries in the "system folder references:hosts" file?</STRONG>
You're trying to get the CNAME or A-Record from an IP address?

i.e. you want to know who is 17.254.3.183?

If you're using OS9 then you can use WhatRoute http://www.versiontracker.com/moreinfo.fcgi?id=4911

in the "Host" box type in the IP address, select Query, Class=ARPA, Type=PTR (pointer)

And you'll get something like this:

Start: 6/19/01 5:46:03 PM
;; Query: 17.254.3.183 ,type = PTR , class = IN

;; ANSWERS:
183.3.254.17.in-addr.arpa. 86400 IN PTR apple.com.

;; AUTHORITY RECORDS:
17.in-addr.arpa. 86400 IN NS nserver.apple.com.
17.in-addr.arpa. 86400 IN NS nserver2.apple.com.
17.in-addr.arpa. 86400 IN NS nserver.euro.apple.com.
17.in-addr.arpa. 86400 IN NS nserver.asia.apple.com.

;; ADDITIONAL RECORDS:
nserver.apple.com. 432000 IN A 17.254.0.50
nserver2.apple.com. 432000 IN A 17.254.0.59
nserver.euro.apple.com. 86400 IN A 194.151.19.41
nserver.asia.apple.com. 86400 IN A 203.120.14.5

• DNR Query complete 6/19/01 5:46:03 PM •
-----------

If you have a linux, OSX, or windows box then you can do CLI commands if you want.
     
Clive  (op)
Mac Enthusiast
Join Date: Jan 2001
Location: Most probably sitting down, London, European Union
Status: Offline
Reply With Quote
Jun 19, 2001, 05:51 PM
 
Originally posted by Raman:
<STRONG>

You're trying to get the CNAME or A-Record from an IP address?

</STRONG>
A-record, but I need to do it via OpenTransport, I can't use a third-party app (ie WebStar needs to do a reverse lookup, so it's doing so through OT, I want to tell it the a-names but can't find a way of doing that through the hosts file).
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:36 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2