Not the visitors IP address, or rdns, indeed they seem to be getting in
the way of my googling for the answer despite qualifying my searches
with -reverse and -remote_addr
No, what I need is a good old fashioned DNS lookup.
e.g. $ip = dns('www.poo.co m');
I know I could just pop a datagram off to port 53 and parse the result
but I feel sure php must provide a built-in for this fairly fundamental
task and that I'm just being lame at finding it.
Thanks,
Roger.
the way of my googling for the answer despite qualifying my searches
with -reverse and -remote_addr
No, what I need is a good old fashioned DNS lookup.
e.g. $ip = dns('www.poo.co m');
I know I could just pop a datagram off to port 53 and parse the result
but I feel sure php must provide a built-in for this fairly fundamental
task and that I'm just being lame at finding it.
Thanks,
Roger.
Comment