Re: Domain Name of curent user




"Malcolm Dew-Jones" <yf110@xxxxxxxxxxxxxxxxxxx> wrote in message
news:438d4452$1@xxxxxxxxxxxxxxxxxxxxxx
> Michael (INERFAZE@xxxxxxx) wrote:
>
> : "Shane" <shane@xxxxxxxxxxxxxxxxxxxx> wrote in message
> : news:pan.2005.11.30.02.31.11.424715@xxxxxxxxxxxxxxxxxxxxxxx
> : > On Wed, 30 Nov 2005 01:38:05 +0000, Michael wrote:
> : >
> : >> "Carl" <_Nospam_@xxxxxxxxxxxx> wrote in message
> : >> news:7d7jf.20683$BZ5.9444@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> : >>> 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?




.



Relevant Pages

  • Re: Senden unter einer anderen Domaene
    ... > es viele Dikussionen über Sinn und Unsinn des Reverse ... da diese Reverse Lookup benutzten und das ... ein nslookup auf die externe IP-Adresse eures Mailservers, ... also auf dem virtuellen SMTP-Server eintragen. ...
    (microsoft.public.de.german.exchange2000.general)
  • Re: Senden unter einer anderen Domaene
    ... Fakt ist dass wir definitiv bei manchen Empfängern ... da diese Reverse Lookup benutzten und das ... IP des Servers auf die Domäne ...
    (microsoft.public.de.german.exchange2000.general)
  • Re: Computers Return from the Dead
    ... Not surprised that the dead didn't show up on forward lookup. ... I suspect this is a reverse lookup *only.* Which is a catch-22. ... And you can't use nslookup to check for reverse-lookup problems because you don't have that IP. ...
    (microsoft.public.windows.server.sbs)
  • Re: [opensuse] nfs server /require/ reverse DNS lookup working?!
    ... This is the first time I see mount failed because reverse DNS lookup ... Some times, the Windows client ask for a username and password, because ...
    (SuSE)
  • Re: Force update of reverse lookups on AD DNS?
    ... networkand nameof you reverse look-up zone, ... We have a forward lookup zone (unfortunately I need to obfuscate, ... Register PTR Records = Enabled ...
    (microsoft.public.win2000.active_directory)