Noel Jones put forth on 9/24/2010 7:43 AM:
> Stan Hoeppner wrote:
>> /\[([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\]/          all_rbls
>>
>> It only matches on a dotted quad enclosed in [].  It won't match on the
>> rdns name, or lack thereof (unknown).
> 
> No, the table is searched twice; first with the hostname (or unknown)
> and then with the bare IP -- no brackets.  Carefully read access(5)
> several times.

I read it at least 5 times.  And double search is the conclusion I came
to.  I needed confirmation though (as you'll see in the message I posted
before reading yours), which you graciously provide here.  Thanks for
the authoritative confirmation Noel.

> For a pcre IP catchall unlikely to match on a real hostname you could use
> /^[0-9.]+$/  all_rbls

Thanks for this expression as well.  Not sure if/when I'll use it, but
now I have it.

> a cidr table -- which can never match a name -- is the cleaner solution.

After the education, I definitely agree.

-- 
Stan

Reply via email to