By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,786 Members | 2,241 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,786 IT Pros & Developers. It's quick & easy.

Domain Name of curent user

P: n/a
Does someone have a reliable routine to get the domain name of the current
user of a web page? Something like NSLookup. I have no problem getting
their IP address, but I also want the domaine name.
Thanks,
-Michael
Nov 30 '05 #1
Share this Question
Share on Google+
16 Replies


P: n/a
Michael wrote:
Does someone have a reliable routine to get the domain name of the current
user of a web page? Something like NSLookup. I have no problem getting
their IP address, but I also want the domaine name.
Thanks,
-Michael


how about:
http://www.php.net/manual/en/function.gethostbyaddr.php

Carl.
Nov 30 '05 #2

P: n/a
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:7d******************@newssvr13.news.prodigy.c om...
Michael wrote:
Does someone have a reliable routine to get the domain name of the
current user of a web page? Something like NSLookup. I have no problem
getting their IP address, but I also want the domaine name.
Thanks,
-Michael


how about:
http://www.php.net/manual/en/function.gethostbyaddr.php

Carl.


It may be just me, but that is the first think I tried and it gave me an IP
address not a domain name.
Maybe it's the... "or a string containing the unmodified ip_address on
failure"... that is getting me.
-Michael

Nov 30 '05 #3

P: n/a
On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:7d******************@newssvr13.news.prodigy.c om...
Michael wrote:
Does someone have a reliable routine to get the domain name of the
current user of a web page? Something like NSLookup. I have no problem
getting their IP address, but I also want the domaine name.
Thanks,
-Michael


how about:
http://www.php.net/manual/en/function.gethostbyaddr.php

Carl.


It may be just me, but that is the first think I tried and it gave me an IP
address not a domain name.
Maybe it's the... "or a string containing the unmodified ip_address on
failure"... that is getting me.
-Michael


er you want to do a reverse dns lookup?
Thats fraught with issues.

--
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.

Nov 30 '05 #4

P: n/a

"Shane" <sh***@weasel.is-a-geek.net> wrote in message
news:pa****************************@weasel.is-a-geek.net...
On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:7d******************@newssvr13.news.prodigy.c om...
Michael wrote:
Does someone have a reliable routine to get the domain name of the
current user of a web page? Something like NSLookup. I have no
problem
getting their IP address, but I also want the domaine name.
Thanks,
-Michael

how about:
http://www.php.net/manual/en/function.gethostbyaddr.php

Carl.


It may be just me, but that is the first think I tried and it gave me an
IP
address not a domain name.
Maybe it's the... "or a string containing the unmodified ip_address on
failure"... that is getting me.
-Michael


er you want to do a reverse dns lookup?
Thats fraught with issues.

--
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.


I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
at the command prompt I get back "Name: box52.bluehost.com"
It works instantally and it works every time (that I have tried.)
I want to get that same answer via PHP.


Nov 30 '05 #5

P: n/a
Michael (IN******@aol.com) wrote:

: "Shane" <sh***@weasel.is-a-geek.net> wrote in message
: news:pa****************************@weasel.is-a-geek.net...
: > On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
: >
: >> "Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
: >> news:7d******************@newssvr13.news.prodigy.c om...
: >>> Michael wrote:
: >>>> Does someone have a reliable routine to get the domain name of the
: >>>> current user of a web page? Something like NSLookup. I have no
: >>>> problem
: >>>> getting their IP address, but I also want the domaine name.
: >>>> Thanks,
: >>>> -Michael
: >>>
: >>> how about:
: >>> http://www.php.net/manual/en/function.gethostbyaddr.php
: >>>
: >>> Carl.
: >>
: >> It may be just me, but that is the first think I tried and it gave me an
: >> IP
: >> address not a domain name.
: >> Maybe it's the... "or a string containing the unmodified ip_address on
: >> failure"... that is getting me.
: >> -Michael
: >
: > er you want to do a reverse dns lookup?
: > Thats fraught with issues.
: >
: > --
: > Hardware, n.: The parts of a computer system that can be kicked
: >
: > The best way to get the right answer on usenet is to post the wrong one.
: >

: I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
: at the command prompt I get back "Name: box52.bluehost.com"
: It works instantally and it works every time (that I have tried.)
: I want to get that same answer via PHP.

Try some other ips.

An ip does not need a name, (and can have many).

Even if it has a name, it does not need reverse lookup data.

Even when that data is available, the name you get from the reverse lookup
is not necessarily the same name that anyone uses to access the host by
name. Indeed if you then lookup the name (i.e. you name you just got from
the reverse lookup) then you may find it does not even resolve to the same
ip you originally looked up.

As for the gethostbyaddr function, it appears to return the original
(input) address if it can't find a better name to go with it.

Nov 30 '05 #6

P: n/a

"Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
news:43********@news.victoria.tc.ca...
Michael (IN******@aol.com) wrote:

: "Shane" <sh***@weasel.is-a-geek.net> wrote in message
: news:pa****************************@weasel.is-a-geek.net...
: > On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
: >
: >> "Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
: >> news:7d******************@newssvr13.news.prodigy.c om...
: >>> Michael wrote:
: >>>> Does someone have a reliable routine to get the domain name of the
: >>>> current user of a web page? Something like NSLookup. I have no
: >>>> problem
: >>>> getting their IP address, but I also want the domaine name.
: >>>> Thanks,
: >>>> -Michael
: >>>
: >>> how about:
: >>> http://www.php.net/manual/en/function.gethostbyaddr.php
: >>>
: >>> Carl.
: >>
: >> It may be just me, but that is the first think I tried and it gave me
an
: >> IP
: >> address not a domain name.
: >> Maybe it's the... "or a string containing the unmodified ip_address
on
: >> failure"... that is getting me.
: >> -Michael
: >
: > er you want to do a reverse dns lookup?
: > Thats fraught with issues.
: >
: > --
: > Hardware, n.: The parts of a computer system that can be kicked
: >
: > The best way to get the right answer on usenet is to post the wrong
one.
: >

: I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
: at the command prompt I get back "Name: box52.bluehost.com"
: It works instantally and it works every time (that I have tried.)
: I want to get that same answer via PHP.

Try some other ips.

An ip does not need a name, (and can have many).

Even if it has a name, it does not need reverse lookup data.

Even when that data is available, the name you get from the reverse lookup
is not necessarily the same name that anyone uses to access the host by
name. Indeed if you then lookup the name (i.e. you name you just got from
the reverse lookup) then you may find it does not even resolve to the same
ip you originally looked up.

As for the gethostbyaddr function, it appears to return the original
(input) address if it can't find a better name to go with it.


I am happy with the answer I get from NSlookup. But I am not familar with
getting results from system().
Can I use the system command to return the NSLookup result?


Nov 30 '05 #7

P: n/a
Michael wrote:
"Shane" <sh***@weasel.is-a-geek.net> wrote in message
news:pa****************************@weasel.is-a-geek.net...
On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:

"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:7d******************@newssvr13.news.prodig y.com...

Michael wrote:

>Does someone have a reliable routine to get the domain name of the
>current user of a web page? Something like NSLookup. I have no
>problem
>getting their IP address, but I also want the domaine name.
>Thanks,
>-Michael

how about:
http://www.php.net/manual/en/function.gethostbyaddr.php

Carl.

It may be just me, but that is the first think I tried and it gave me an
IP
address not a domain name.
Maybe it's the... "or a string containing the unmodified ip_address on
failure"... that is getting me.
-Michael


er you want to do a reverse dns lookup?
Thats fraught with issues.

--
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.

I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
at the command prompt I get back "Name: box52.bluehost.com"
It works instantally and it works every time (that I have tried.)
I want to get that same answer via PHP.


FWIW, the statement < echo gethostbyaddr("70.98.111.52"); > prints
"box52.bluehost.com" for me.

I am not aware of any real reason that reverse dns lookups should be
considered "fraught with issues". You must keep in mind however that all
IP addresses do not have public dns records, and dns servers are often
'creatively' configured.

Carl.

Nov 30 '05 #8

P: n/a
Michael (IN******@aol.com) wrote:

: "Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
: news:43********@news.victoria.tc.ca...
: > Michael (IN******@aol.com) wrote:
: >
: > : "Shane" <sh***@weasel.is-a-geek.net> wrote in message
: > : news:pa****************************@weasel.is-a-geek.net...
: > : > On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
: > : >
: > : >> "Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
: > : >> news:7d******************@newssvr13.news.prodigy.c om...
: > : >>> Michael wrote:
: > : >>>> Does someone have a reliable routine to get the domain name of the
: > : >>>> current user of a web page? Something like NSLookup. I have no
: > : >>>> problem
: > : >>>> getting their IP address, but I also want the domaine name.
: > : >>>> Thanks,
: > : >>>> -Michael
: > : >>>
: > : >>> how about:
: > : >>> http://www.php.net/manual/en/function.gethostbyaddr.php
: > : >>>
: > : >>> Carl.
: > : >>
: > : >> It may be just me, but that is the first think I tried and it gave me
: > an
: > : >> IP
: > : >> address not a domain name.
: > : >> Maybe it's the... "or a string containing the unmodified ip_address
: > on
: > : >> failure"... that is getting me.
: > : >> -Michael
: > : >
: > : > er you want to do a reverse dns lookup?
: > : > Thats fraught with issues.
: > : >
: > : > --
: > : > Hardware, n.: The parts of a computer system that can be kicked
: > : >
: > : > The best way to get the right answer on usenet is to post the wrong
: > one.
: > : >
: >
: > : I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
: > : at the command prompt I get back "Name: box52.bluehost.com"
: > : It works instantally and it works every time (that I have tried.)
: > : I want to get that same answer via PHP.
: >
: > Try some other ips.
: >
: > An ip does not need a name, (and can have many).
: >
: > Even if it has a name, it does not need reverse lookup data.
: >
: > Even when that data is available, the name you get from the reverse lookup
: > is not necessarily the same name that anyone uses to access the host by
: > name. Indeed if you then lookup the name (i.e. you name you just got from
: > the reverse lookup) then you may find it does not even resolve to the same
: > ip you originally looked up.
: >
: > As for the gethostbyaddr function, it appears to return the original
: > (input) address if it can't find a better name to go with it.
: >

: I am happy with the answer I get from NSlookup. But I am not familar with
: getting results from system().
: Can I use the system command to return the NSLookup result?

Lookup "backtick operator" or "exec". (Both are linked from the manual
page for "system").

However, nslookup has the identical issue, if you lookup an ip that does
not have reverse data available then you won't get a name back, and etc.

Nov 30 '05 #9

P: n/a
Michael wrote:
"Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
news:43********@news.victoria.tc.ca...
Michael (IN******@aol.com) wrote:

: "Shane" <sh***@weasel.is-a-geek.net> wrote in message
: news:pa****************************@weasel.is-a-geek.net...
: > On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
: >
: >> "Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
: >> news:7d******************@newssvr13.news.prodigy.c om...
: >>> Michael wrote:
: >>>> Does someone have a reliable routine to get the domain name of the
: >>>> current user of a web page? Something like NSLookup. I have no
: >>>> problem
: >>>> getting their IP address, but I also want the domaine name.
: >>>> Thanks,
: >>>> -Michael
: >>>
: >>> how about:
: >>> http://www.php.net/manual/en/function.gethostbyaddr.php
: >>>
: >>> Carl.
: >>
: >> It may be just me, but that is the first think I tried and it gave me
an
: >> IP
: >> address not a domain name.
: >> Maybe it's the... "or a string containing the unmodified ip_address
on
: >> failure"... that is getting me.
: >> -Michael
: >
: > er you want to do a reverse dns lookup?
: > Thats fraught with issues.
: >
: > --
: > Hardware, n.: The parts of a computer system that can be kicked
: >
: > The best way to get the right answer on usenet is to post the wrong
one.
: >

: I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
: at the command prompt I get back "Name: box52.bluehost.com"
: It works instantally and it works every time (that I have tried.)
: I want to get that same answer via PHP.

Try some other ips.

An ip does not need a name, (and can have many).

Even if it has a name, it does not need reverse lookup data.

Even when that data is available, the name you get from the reverse lookup
is not necessarily the same name that anyone uses to access the host by
name. Indeed if you then lookup the name (i.e. you name you just got from
the reverse lookup) then you may find it does not even resolve to the same
ip you originally looked up.

As for the gethostbyaddr function, it appears to return the original
(input) address if it can't find a better name to go with it.

I am happy with the answer I get from NSlookup. But I am not familar with
getting results from system().
Can I use the system command to return the NSLookup result?


Are you actually running nslookup on the same physical machine that is
serving the failing php code?

I would suspect that somehow there is a configuration problem. Something
strange that they would show different results since the results should
actually be returned from the name server, not the function/program or
machine? Are both machines using the same dns server? Do both have
access to the internet?

Carl.
Nov 30 '05 #10

P: n/a
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:kE*******************@newssvr29.news.prodigy. net...
Michael wrote:
"Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
news:43********@news.victoria.tc.ca...
Michael (IN******@aol.com) wrote:

: "Shane" <sh***@weasel.is-a-geek.net> wrote in message
: news:pa****************************@weasel.is-a-geek.net...
: > On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
: >
: >> "Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
: >> news:7d******************@newssvr13.news.prodigy.c om...
: >>> Michael wrote:
: >>>> Does someone have a reliable routine to get the domain name of the
: >>>> current user of a web page? Something like NSLookup. I have no
: >>>> problem
: >>>> getting their IP address, but I also want the domaine name.
: >>>> Thanks,
: >>>> -Michael
: >>>
: >>> how about:
: >>> http://www.php.net/manual/en/function.gethostbyaddr.php
: >>>
: >>> Carl.
: >>
: >> It may be just me, but that is the first think I tried and it gave
me an
: >> IP
: >> address not a domain name.
: >> Maybe it's the... "or a string containing the unmodified ip_address
on
: >> failure"... that is getting me.
: >> -Michael
: >
: > er you want to do a reverse dns lookup?
: > Thats fraught with issues.
: >
: > --
: > Hardware, n.: The parts of a computer system that can be kicked
: >
: > The best way to get the right answer on usenet is to post the wrong
one.
: >

: I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
: at the command prompt I get back "Name: box52.bluehost.com"
: It works instantally and it works every time (that I have tried.)
: I want to get that same answer via PHP.

Try some other ips.

An ip does not need a name, (and can have many).

Even if it has a name, it does not need reverse lookup data.

Even when that data is available, the name you get from the reverse
lookup
is not necessarily the same name that anyone uses to access the host by
name. Indeed if you then lookup the name (i.e. you name you just got
from
the reverse lookup) then you may find it does not even resolve to the
same
ip you originally looked up.

As for the gethostbyaddr function, it appears to return the original
(input) address if it can't find a better name to go with it.

I am happy with the answer I get from NSlookup. But I am not familar
with getting results from system().
Can I use the system command to return the NSLookup result?


Are you actually running nslookup on the same physical machine that is
serving the failing php code?

I would suspect that somehow there is a configuration problem. Something
strange that they would show different results since the results should
actually be returned from the name server, not the function/program or
machine? Are both machines using the same dns server? Do both have access
to the internet?

Carl.


I have used NSLookup on many machines and haven't had any problems. But to
answer your question, no, I am only running the gethost on the server where
my web page is.
-Michael
Dec 1 '05 #11

P: n/a
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:Vy******************@newssvr29.news.prodigy.n et...
Michael wrote:
"Shane" <sh***@weasel.is-a-geek.net> wrote in message
news:pa****************************@weasel.is-a-geek.net...
On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:7d******************@newssvr13.news.prodi gy.com...

>Michael wrote:
>
>>Does someone have a reliable routine to get the domain name of the
>>current user of a web page? Something like NSLookup. I have no
>>problem
>>getting their IP address, but I also want the domaine name.
>>Thanks,
>>-Michael
>
>how about:
>http://www.php.net/manual/en/function.gethostbyaddr.php
>
>Carl.

It may be just me, but that is the first think I tried and it gave me an
IP
address not a domain name.
Maybe it's the... "or a string containing the unmodified ip_address on
failure"... that is getting me.
-Michael

er you want to do a reverse dns lookup?
Thats fraught with issues.

--
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.

I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
at the command prompt I get back "Name: box52.bluehost.com"
It works instantally and it works every time (that I have tried.)
I want to get that same answer via PHP.


FWIW, the statement < echo gethostbyaddr("70.98.111.52"); > prints
"box52.bluehost.com" for me.

I am not aware of any real reason that reverse dns lookups should be
considered "fraught with issues". You must keep in mind however that all
IP addresses do not have public dns records, and dns servers are often
'creatively' configured.

Carl.

It must be the way I am doing it then because I have had the same results on
three web hosts in three countries.
AsiaHost, OnlyWebHosting, and BlueHost.

Here is what I did....

$domain=gethostbyaddr($REMOTE_ADDR);
print "<p align=\"center\">$domain</p>\n";

I just tried a fixed IP of Microsoft $domain=GetHostByAddr("207.46.20.30");
and that didn't work either.

-Michael


Dec 1 '05 #12

P: n/a
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:Vy******************@newssvr29.news.prodigy.n et...
Michael wrote:
"Shane" <sh***@weasel.is-a-geek.net> wrote in message
news:pa****************************@weasel.is-a-geek.net...
On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:7d******************@newssvr13.news.prodi gy.com...

>Michael wrote:
>
>>Does someone have a reliable routine to get the domain name of the
>>current user of a web page? Something like NSLookup. I have no
>>problem
>>getting their IP address, but I also want the domaine name.
>>Thanks,
>>-Michael
>
>how about:
>http://www.php.net/manual/en/function.gethostbyaddr.php
>
>Carl.

It may be just me, but that is the first think I tried and it gave me an
IP
address not a domain name.
Maybe it's the... "or a string containing the unmodified ip_address on
failure"... that is getting me.
-Michael

er you want to do a reverse dns lookup?
Thats fraught with issues.

--
Hardware, n.: The parts of a computer system that can be kicked

The best way to get the right answer on usenet is to post the wrong one.

I'm not sure what you mean, when I type "NSLookup 70.98.111.52"
at the command prompt I get back "Name: box52.bluehost.com"
It works instantally and it works every time (that I have tried.)
I want to get that same answer via PHP.


FWIW, the statement < echo gethostbyaddr("70.98.111.52"); > prints
"box52.bluehost.com" for me.

I am not aware of any real reason that reverse dns lookups should be
considered "fraught with issues". You must keep in mind however that all
IP addresses do not have public dns records, and dns servers are often
'creatively' configured.

Carl.


You are not going to believe this...I wouldn't.
To give you the example I just sent, I FTPed back to my (home) computer that
php (from the host.)
I copied and pasted those two lines to the message.
Then I changed it to the fixed (microsoft) IP address.
I sent it back to the server and tested it.
When that didn't work, I cut and pasted the $REMOTE_ADDR back in.
NOW IT WORKS.
Too answer your (anticipated) question, no I don't use crack.
This really just happened.
-Michael

Dec 1 '05 #13

P: n/a
Michael (IN******@aol.com) wrote:

: I just tried a fixed IP of Microsoft $domain=GetHostByAddr("207.46.20.30");
: and that didn't work either.

But it did work! It just didn't do what you wanted it to do. It returned
the information that was made visible to the host that ran the command -
in other words, no information.

That is exactly why someone originally said this was "fraught" with
problems.

You can only get the reverse lookup if an appropriate name server makes
that information available to you, and they commonly don't do that. Even
if the information is available to _some_ people on one network, _you_
will not be able to get it unless that name server is visible to you.
For example I have my own resolver setup at home, and I can assign names
to my machines, but my name server setup is not visible to you and so you
cannot get that information. Lots of machines have names that are only
visible to some internal network, even if the ip address of that machine
can access the world.

Dec 1 '05 #14

P: n/a
"Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
news:43********@news.victoria.tc.ca...
Michael (IN******@aol.com) wrote:

: I just tried a fixed IP of Microsoft
$domain=GetHostByAddr("207.46.20.30");
: and that didn't work either.

But it did work! It just didn't do what you wanted it to do. It returned
the information that was made visible to the host that ran the command -
in other words, no information.

That is exactly why someone originally said this was "fraught" with
problems.

You can only get the reverse lookup if an appropriate name server makes
that information available to you, and they commonly don't do that. Even
if the information is available to _some_ people on one network, _you_
will not be able to get it unless that name server is visible to you.
For example I have my own resolver setup at home, and I can assign names
to my machines, but my name server setup is not visible to you and so you
cannot get that information. Lots of machines have names that are only
visible to some internal network, even if the ip address of that machine
can access the world.


I am not real savvy with all that, but are you telling me that I could see
the IP address of one of your (own resolver handled) machines but not the
dns name?

Did you see my post from 9:22 last night? Suddenly (with no change to my
php) it works 100% of the time (so far.)

Dec 2 '05 #15

P: n/a
Michael (IN******@aol.com) wrote:
: "Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
: news:43********@news.victoria.tc.ca...
: > Michael (IN******@aol.com) wrote:
: >
: > : I just tried a fixed IP of Microsoft
: > $domain=GetHostByAddr("207.46.20.30");
: > : and that didn't work either.
: >
: > But it did work! It just didn't do what you wanted it to do. It returned
: > the information that was made visible to the host that ran the command -
: > in other words, no information.
: >
: > That is exactly why someone originally said this was "fraught" with
: > problems.
: >
: > You can only get the reverse lookup if an appropriate name server makes
: > that information available to you, and they commonly don't do that. Even
: > if the information is available to _some_ people on one network, _you_
: > will not be able to get it unless that name server is visible to you.
: > For example I have my own resolver setup at home, and I can assign names
: > to my machines, but my name server setup is not visible to you and so you
: > cannot get that information. Lots of machines have names that are only
: > visible to some internal network, even if the ip address of that machine
: > can access the world.
: >

: I am not real savvy with all that, but are you telling me that I could see
: the IP address of one of your (own resolver handled) machines but not the
: dns name?

Yes.

Dec 2 '05 #16

P: n/a
"Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
news:43********@news.victoria.tc.ca...
Michael (IN******@aol.com) wrote:
: "Malcolm Dew-Jones" <yf***@vtn1.victoria.tc.ca> wrote in message
: news:43********@news.victoria.tc.ca...
: > Michael (IN******@aol.com) wrote:
: >
: > : I just tried a fixed IP of Microsoft
: > $domain=GetHostByAddr("207.46.20.30");
: > : and that didn't work either.
: >
: > But it did work! It just didn't do what you wanted it to do. It
returned
: > the information that was made visible to the host that ran the
command -
: > in other words, no information.
: >
: > That is exactly why someone originally said this was "fraught" with
: > problems.
: >
: > You can only get the reverse lookup if an appropriate name server
makes
: > that information available to you, and they commonly don't do that.
Even
: > if the information is available to _some_ people on one network, _you_
: > will not be able to get it unless that name server is visible to you.
: > For example I have my own resolver setup at home, and I can assign
names
: > to my machines, but my name server setup is not visible to you and so
you
: > cannot get that information. Lots of machines have names that are
only
: > visible to some internal network, even if the ip address of that
machine
: > can access the world.
: >

: I am not real savvy with all that, but are you telling me that I could
see
: the IP address of one of your (own resolver handled) machines but not
the
: dns name?

Yes.

What is the IP address, I will give it a try.
Dec 2 '05 #17

This discussion thread is closed

Replies have been disabled for this discussion.