Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:15:09+00:00 2026-06-14T14:15:09+00:00

Recently I switch from using LWP::UserAgent to LWPx::ParanoidAgent to fetch URLs provided by 3rd

  • 0

Recently I switch from using LWP::UserAgent to LWPx::ParanoidAgent to fetch URLs provided by 3rd parties.

Its all very well, except sometimes a lookup in /etc/hosts is needed to resolve a domain. LWP::UserAgent did that automatically, but LWPx::ParanoidAgent only queries real DNS servers.

How can I configure LWPx::ParanoidAgent to search /etc/hosts, too ?

Update:
The module lets me set a DNS resolver (Net::DNS::Resolver). Is there a way to have a DNS resolver that looks into /etc/hosts, too ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:15:10+00:00Added an answer on June 14, 2026 at 2:15 pm

    I looked at the module’s source. It can’t be configured to do so.

    By the way, it’s not using the normal name resolution system since it wants to know if the host resolves to another host name (i.e. when it’s a CNAME) so it can check that host name against the host black and white lists too.

    If you wanted to add this functionality, I suggest wrapping LWPx::ParanoidAgent::_resolve with something that checks /etc/hosts directly (when !$depth) before falling back to the original _resolve. Providing a Net::DNS::Resolver look-alike would be significantly more work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently had to switch from using Microsofts SQL server to using MySQL. The
Recently I made the switch from using asmx web services to using wcf services,
My company has recently decided to switch to GitHub from Assembla (using git). How
I've decided to switch from MySQL to PostgreSQL recently, mostly just to learn a
I've recently had to switch encoding of webapp I'm working on from ISO-xx to
I have recently started using the -Wall compiler switch in an attempt to improve
I recently thought it would be a good idea to switch from the old
I'm using Magento 1.7.0.1 just recently upgraded from 1.6.2.0 . I have the SCP
I have a game, and recently decided to switch from TilED (a tile map
I have recently changed from using the cassini development server to IIS 7.5 express,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.