473,395 Members | 1,441 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,395 software developers and data experts.

Domain Name of curent user

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
16 2274
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
"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
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

"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
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

"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
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
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
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
"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
"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
"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
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
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jach | last post by:
How can I get the domain, username and PC network name (Win 2000 Pro & Win XP Pro PC's) of the current logged on user (logged onto a domain and access an intranet page, Window 2000 server running...
0
by: Buddy Ackerman | last post by:
I have an application where the client wants AD integration. The application requires that the user accounts reside in the app's database. The application is a (.NET) webservices based app where...
4
by: Prehaut Anselme | last post by:
Hi, I need to create a WebRequest with an automatic proxy I have the specification of this porxy (host & port) I ask the user their own login and password, but the proxy tells me that the...
4
by: Zest4Csharp | last post by:
Hi there, When i use: WindowsIdentity.GetCurrent().Name.ToString(); I get a concatenated domain name and user name in the format : DOMAIN\USER_NAME. Are there functions in C# to get the domain...
2
by: Hrvoje Voda | last post by:
How to check if a user is logged into domain ? Hrcko
5
by: Bruno Mendonça | last post by:
My boss asked me to build a program to create a report with logon/logoff events for all users within our windows domain. I'm using .Net to do so and decided to have a program running on the Domain...
5
by: Rocky | last post by:
Hi, I have a webform, with 2 textboxs and a submit button. In the text box1, i enter a username and in textbox2 I enter the computer name. Both the username and computer name is in active...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
3
by: Terry Olsen | last post by:
I'm trying to add a domain user to a local group using the code below: Dim LCL As New DirectoryEntry("WinNT://" + Environment.MachineName + ",computer") Dim DOM As New...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.