Re: Detecting the domain part of a host address?

2007-06-25 Thread Theo Van Dinter
On Mon, Jun 25, 2007 at 07:32:18AM -0700, Marc Perkel wrote:
> >Use RegistrarBoundaries? :)
> 
> ok - what's that? How would I write a perl script to do that?

Take a look at Mail::SpamAssassin::Util::RegistrarBoundaries and the bits
that call it.  It doesn't have a POD, but it's an easy module to read.

-- 
Randomly Selected Tagline:
"I am Mr Do.  I am sedentary by nature, enjoying passive entertainment,
 eating when the mood takes me, and playing with my food. I try to avoid
 conflict, but when I'm angered, I can be a devil - if you force me to
 fight, I will crush you.  With apples."
 - http://blog.ravenblack.net/quiz/videogame.pl?q=1&a=11


pgp1K9z9IgnAs.pgp
Description: PGP signature


Re: Detecting the domain part of a host address?

2007-06-25 Thread Marc Perkel



Theo Van Dinter wrote:

On Mon, Jun 25, 2007 at 06:30:19AM -0700, Marc Perkel wrote:
  
What would be the method of detecting the domain part of a host address? 


82-46-151-246.cable.ubr04.perr.blueyonder.co.uk

How would you write a perl script that would extract the 
blueyonder.co.uk part?



Use RegistrarBoundaries? :)

  


ok - what's that? How would I write a perl script to do that?



Re: Detecting the domain part of a host address?

2007-06-25 Thread Theo Van Dinter
On Mon, Jun 25, 2007 at 06:30:19AM -0700, Marc Perkel wrote:
> What would be the method of detecting the domain part of a host address? 
> 
> 82-46-151-246.cable.ubr04.perr.blueyonder.co.uk
> 
> How would you write a perl script that would extract the 
> blueyonder.co.uk part?

Use RegistrarBoundaries? :)

-- 
Randomly Selected Tagline:
"/etc/fstab The file fstab resides in /etc."  - man page for fstab


pgpYnB96ujhsr.pgp
Description: PGP signature


Detecting the domain part of a host address?

2007-06-25 Thread Marc Perkel
What would be the method of detecting the domain part of a host address? 
For example:


82-46-151-246.cable.ubr04.perr.blueyonder.co.uk

How would you write a perl script that would extract the 
blueyonder.co.uk part?