Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

For some this is relatvely old news, as the change dates from 15th Sept 2003. In case you don't yet know (or sort of know but have not really considered what it means) - Have a look at this Installing Email::Valid or try this:

use Socket; for ( 0..100 ) { $domain = "i-am-a-domain-that-should-not-resolve-but-i-will-$_.com +"; $ip = inet_ntoa(inet_aton($domain)); print "$domain\t$ip\n"; } __DATA__ i-am-a-domain-that-should-not-resolve-but-i-will-0.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-1.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-2.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-3.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-4.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-5.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-6.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-7.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-8.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-9.com 64.94.110.11 i-am-a-domain-that-should-not-resolve-but-i-will-10.com 64.94.110.1 +1

If you are trying to validate that a domain exists Verisign have now ensured that it will appear to exist at 64.94.110.11 (unless it really does exist) If this IP stays the same it is at least a fixable issue. If you are currently doing anthing that checks to see if a domain exists and splits logic if it does not it will now be totally broken. Just some to the code that will now not behave as expected:

  • Net::DNS (will always resolve a .com or .net domain)
  • Email::Vaild (all .com/.net domains are now valid, even if they are totally fake)
  • inet_aton()
  • gethostbyname()

There is a discussion of the ramifications here There are a number of DNS server patches already out http://lists.insecure.org/lists/bugtraq/2003/Sep/0276.html

Update thanks Moriarty

This only affects TLDs controlled by Verisign et al, but as that includes .com and .net we are not talking about a small problem.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print


In reply to Verisign Hijack all possible .com .net domains and destroy Email::Valid, Net::DNS, gethostbyname() etc by tachyon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (16)
    As of 2014-07-10 12:16 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      When choosing user names for websites, I prefer to use:








      Results (209 votes), past polls