« Return to Thread: How do I make Net::DNS::Resolver take /etc/hosts into account?

Re: How do I make Net::DNS::Resolver take /etc/hosts into account?

by Per Jessen :: Rate this Message:

Reply to Author | View in Thread

Henrik K wrote:

> On Thu, Jul 02, 2009 at 10:08:31AM +0200, Per Jessen wrote:
>>
>> Now for calling gethostbyname() from within SA - I could share the
>> plugin code, but it won't work without a few other things, so if you
>> can think of another/easier way of calling gethostbyname() from
>> within SA, then you'll see that "www.doesnt.matter" does not resolve.
>
> http://sa.hege.li/name.pm
> http://sa.hege.li/name.cf
>
> [16752] dbg: gethostbyname: 1.2.3.4
>
> Not that I'm saying your code is bad, but it's impossible to verify
> it's good when you don't share it.

Well - you've just proven that it IS my fault.  Dunno where yet, but
your code above worked just fine.  Thanks, that is actually good news!


/Per Jessen, Zürich

 « Return to Thread: How do I make Net::DNS::Resolver take /etc/hosts into account?