473,324 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Reverse DNS lookup ?

Hi PHP buddies,

I want to include a reverse DNS lookup (find host/domain for a given IP) in
my pagetracker scripts.
Is there anything prefab in the PHP world I am overlooking I could put to
use ? I know some sites that offer en Reverse Lookup function but I want a
non-interactive method. My server normally runs on Linux but right now I
have it on XP, as my linux server has some problems I need to address first.
So I can't rely on an exec to a *nix function right now.

Any pointers, scripts etc welcomed!
Regards
Pjotr


Jul 17 '05 #1
4 8319
"Pjotr Wedersteers" <x3****@westerterp.com> wrote in message
news:41***********************@news.xs4all.nl...
Hi PHP buddies,

I want to include a reverse DNS lookup (find host/domain for a given IP) in my pagetracker scripts.
Is there anything prefab in the PHP world I am overlooking I could put to
use ? I know some sites that offer en Reverse Lookup function but I want a
non-interactive method. My server normally runs on Linux but right now I
have it on XP, as my linux server has some problems I need to address first. So I can't rely on an exec to a *nix function right now.

Any pointers, scripts etc welcomed!


RTFM

http://uk2.php.net/manual/en/function.gethostbyaddr.php

Jul 17 '05 #2
CJ Llewellyn wrote:
"Pjotr Wedersteers" <x3****@westerterp.com> wrote in message
news:41***********************@news.xs4all.nl...
Hi PHP buddies,

I want to include a reverse DNS lookup (find host/domain for a given
IP) in my pagetracker scripts.
Is there anything prefab in the PHP world I am overlooking I could
put to use ? I know some sites that offer en Reverse Lookup function
but I want a non-interactive method. My server normally runs on
Linux but right now I have it on XP, as my linux server has some
problems I need to address first. So I can't rely on an exec to a
*nix function right now.

Any pointers, scripts etc welcomed!


RTFM

http://uk2.php.net/manual/en/function.gethostbyaddr.php


The one I could not find. Tried tons of terms lol. THANKS!
Jul 17 '05 #3
Christian Fersch wrote:
STFU

http://en.wikipedia.org/wiki/Netiquette


Might be a good idea to read what you're linking to before you post - I
quote from the above source:

There is also a Netiquette rule for how to deal with someone who has
violated one of the rules of Netiquette:

* If you believe someone has violated netiquette, send them a message
by private e-mail; *do not post a follow-up to the news*.

--
Jasper Bryant-Greene
Cabbage Promotions
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

59
by: Raymond Hettinger | last post by:
Please comment on the new PEP for reverse iteration methods. Basically, the idea looks like this: for i in xrange(10).iter_backwards(): # 9,8,7,6,5,4,3,2,1,0 <do something with i> The...
47
by: Kapil Khosla | last post by:
Hi, I am trying to reverse a byte eg. 11010000 should look like 00001011 Plz note, it is not a homework problem and I do not need the c code for it. Just give me an idea how should I proceed...
6
by: John Deuf | last post by:
Does somebody has a better algorithm than mine to reverse a byte (i.e. bit 0 becomes 7, bit 1 becomes 6 ...) unsigned char u=0, c = TESTVALUE; int i; for (i=0 ; i<4 ; i++) u |= ((c & (1 << ...
0
by: Dan Nash | last post by:
Hi peeps When I was asking about getting the computer name before, everyone kept mentioning having to do a reverse DNS lookup. Is this possible on an intranet from asp.net / c# - and if so,...
12
by: rudysanford | last post by:
I just started messing with programming and started with Python. Part of my first project deals with translating numerical values to letters. I would like to be able to do the reverse as well,...
8
by: rh0dium | last post by:
Hi all, I have a dict which looks like this.. dict={'130nm': {'umc': }, '180nm': {'chartered': , 'tsmc': }, '250nm': {'umc': , 'tsmc': } }
1
by: Screenbert | last post by:
I have a web page that displays and creates DNS entries. It displays DNS entries if they exist for certain IP ranges. (Usually about 20 IP address at a time) If a DNS entry needs to be created then...
8
by: schaf | last post by:
Hi NG! I have a problem in my remote application. After calling a remote function the calculation will be done by the service. The calculation result will be sent to the caller (client) via...
1
by: abhipro | last post by:
Hi all, I am trying to know more about Reverse ip lookup. The results vary from tool to tool.. I wanted to know what exactly happens behind the scenes when we do the reverese lookup.. and why some...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.