Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: tldwild - display TLDs that employ DNS wildcards

by huguei (Scribe)
on Mar 24, 2006 at 18:36 UTC ( [id://539069]=note: print w/replies, xml ) Need Help??


in reply to tldwild - display TLDs that employ DNS wildcards

It seems that Net::Domain::TLD has changed its API. The Net::Domain::TLD->new->All line throws an error. I solved it replacing that line by:
my my @all_tlds = Net::Domain::TLD::tlds; for my $tld ( sort @all_tlds ) {
And the output at the time of writing is:
.cd 66.113.70.101
.mp 66.135.225.102
.museum 195.7.77.20
.nu 62.4.64.119
.nu 69.25.75.72
.nu 212.181.91.6
.ph 203.167.64.64
.pw 69.20.61.189
.so 127.0.0.3
.st 195.178.186.40
.tk 195.20.32.77
.tk 195.20.32.78
.vg 66.113.70.101
.ws 216.35.187.251
Hugo

Replies are listed 'Best First'.
Re^2: tldwild - display TLDs that employ DNS wildcards
by taint (Chaplain) on Aug 22, 2012 at 00:20 UTC
    Greetings,
    @huguei thanks for the API update.
    For the record, the update @ line 24 should read:
    my @all_tlds = Net::Domain::TLD::tlds; for my $tld ( sort @all_tlds ) {

    Please note the extra my at the beginning of yours. :)
    Here's the listing my run returned:
    .kr 222.231.8.226 .mp 65.99.230.31 .ph 203.119.6.168 .st 94.254.0.40 .sy 91.144.20.76 .tk 71.6.218.116 .tk 209.126.220.134 .tk 216.75.44.103 .tk 71.6.218.118 .tk 71.6.218.113 .tk 66.240.232.110 .tk 216.75.55.110 .to 208.73.210.178 .ws 64.70.19.33

    hoowee! will 'ya look at all those .tk entries!
    For those running Sendmail, it may be of interest to note, that opening your access file and entering the following, will send an informative bounce message to any addresses returned by this script, that you choose to add to it. For example, using the ones above, might look like this:
    222.231.8.226: ERROR:"550 BOGUS MX DETECTED!" 65.99.230.31: ERROR:"550 BOGUS MX DETECTED!" 203.119.6.168: ERROR:"550 BOGUS MX DETECTED!" 94.254.0.40: ERROR:"550 BOGUS MX DETECTED!" 91.144.20.76: ERROR:"550 BOGUS MX DETECTED!" 71.6.218.116: ERROR:"550 BOGUS MX DETECTED!" 209.126.220.134: ERROR:"550 BOGUS MX DETECTED!" 216.75.44.103: ERROR:"550 BOGUS MX DETECTED!" 71.6.218.118: ERROR:"550 BOGUS MX DETECTED!" 71.6.218.113: ERROR:"550 BOGUS MX DETECTED!" 208.73.210.178: ERROR:"550 BOGUS MX DETECTED!" 64.70.19.33: ERROR:"550 BOGUS MX DETECTED!"

    If you're fortunate enough to be running a *BSD boxen,
    assuming you're already in /etc/mail
    run
    # make aliases.db
    Done! :)
    Thanks @grinder for this great script!
    --Chris
    #!/usr/bin/perl -Tw
    use perl::always;
    my $perl_version = "5.12.4";
    print $perl_version;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://539069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found