FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Domain names listed by host
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Domain names listed by host [message #175825] Fri, 28 October 2011 03:44 Go to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
This question came up in another newsgroup and it got me to thinking maybe
it can be done with php.

Let's say you wanted to know what domain names were listed on
mystupidhosting.com
Is there a way to get that list in PHP?

As you know, a domain name resolves to an IP.
But there could be hundreds of domain names on that same IP.
How do I know for sure which domain name is spamming me?
Just as an example.

I did find reference to an old program called "Webspy" that could
apparently do this. But it appears not to be available any longer.
Oh and yes I googled it. That's like looking for a needle in lake michigan.
Re: Domain names listed by host [message #175826 is a reply to message #175825] Fri, 28 October 2011 07:46 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 28/10/2011 5:44, richard escribió/wrote:
> This question came up in another newsgroup and it got me to thinking maybe
> it can be done with php.
>
> Let's say you wanted to know what domain names were listed on
> mystupidhosting.com
> Is there a way to get that list in PHP?
>
> As you know, a domain name resolves to an IP.
> But there could be hundreds of domain names on that same IP.
> How do I know for sure which domain name is spamming me?
> Just as an example.

The programming language does not really matter. The key point is
whether such information is available somewhere. A few hints:

1. Neither the web server software (Apache, IIS...) nor the host
computer are required to reveal what domains they are configured to
served. Even if they wanted to, they wouldn't have a way to do it.

2. Usable domain names need to bind to one or more IP addresses and that
information *is* publicly available (through a DNS server): you can
easily look up IP addresses by domain name. However, the opposite is not
true. You won't necessarily find a domain name by IP address in the DNS
server, and even when you do it won't normally be what you expect:

C:\>nslookup google.com
Nombre: google.com
Addresses: 209.85.229.147, 209.85.229.99, 209.85.229.105, 209.85.229.103
209.85.229.104

C:\>nslookup 209.85.229.147
Nombre: ww-in-f147.1e100.net
Address: 209.85.229.147

3. When you write a piece of software that opens and outgoing network
connection (for instance, to spam you), you won't normally need to
provide your domain name. Actually, the whole idea of whether your
script belongs to a web site is totally irrelevant in this context.


So:

- If you want to locate a spammer you'll have to do it manually with the
variety of on-line services that compile this kind of information or buy
access to their API.

- If you want something else, you'll need to explain *what* you need to
do rather than *how* you expect to do it.

In either case, I think it's pretty off-topic here.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: Domain names listed by host [message #175827 is a reply to message #175825] Fri, 28 October 2011 13:26 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Thu, 27 Oct 2011 23:44:35 -0400, richard wrote:

> This question came up in another newsgroup and it got me to thinking
> maybe it can be done with php.

You asked this question in another group and didn't get an answer that
suited your worldview, so you're asking it here.

> As you know, a domain name resolves to an IP. But there could be
> hundreds of domain names on that same IP. How do I know for sure which
> domain name is spamming me? Just as an example.

First of all, please define what you mean by "spamming".

Rgds

Denis McMahon
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Standard practice: login pages
Next Topic: `********AMAZING HOT PHOTOS & VIDEOS ********
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:51:23 GMT 2024

Total time taken to generate the page: 0.03186 seconds