First, there is no way for DNS to lookup all hostnames that point to an IP address. Or, all the aliases pointing to a canonical name. It can lookup the PTR records for an IP address. Usually, this is a single name, the primary name for a host. PTR records can not use aliases.
If you have access to the complete zone files for the domains you care about, then you can search the zone files. There are some modules for parsing zone files. I find that grep works pretty well.
Third, you need to distinguish between URLs, hosts, and web sites. URLs contain host names. You can make http URLs from hostnames if you assume that they all are used for web sites.
Fourth, there is no way to know if two hostnames on the same IP address are the same web site without knowing the web server configuration. The server could be using IP addresses, names, or both to do virtual hosting. The same web site could be hosted on multiple IP addresses.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.