Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How can I determine whether a URI, hostname or IP address is to the local host machine?

by mhearse (Chaplain)
on Apr 29, 2014 at 00:10 UTC ( [id://1084216]=note: print w/replies, xml ) Need Help??


in reply to How can I determine whether a URI, hostname or IP address is to the local host machine?

Some suggestions:

Create a central database accessible by all httpd machines. select * from hostname_map where ip = ? This table would have to be manually populated.

Use a job server such as gearman to do the URI requests. I've done it within cgi/mod_perl... it can be messy.

  • Comment on Re: How can I determine whether a URI, hostname or IP address is to the local host machine?
  • Download Code

Replies are listed 'Best First'.
Re^2: How can I determine whether a URI, hostname or IP address is to the local host machine?
by dbooth (Novice) on Apr 29, 2014 at 20:51 UTC
    In theory that may work, but unfortunately any solution that relies on manual configuration would defeat the purpose, because the whole point is to catch easy-to-make configuration errors that would otherwise cause infinite recursion of HTTP requests.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1084216]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found