We had a weird one that took a week to figure out.
Our domain setup was iseries.company.local and we had host entries
for loopback and localhost at 184.108.40.206.
At some point, a vendor installed a router in you HVAC system and named it company.local
After that, iseries stuff directed to 127.0.0.1 worked fine, but stuff directed to localhost or
loopback did not. The clue was that pinging localhost resolved to a strange address.
We added a host entry for loopback.company.local (not just loopback) pointing to 127.0.0.1
and everything was fine.
Probably not your issue, but the symptoms sound similar.
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Monday, January 28, 2013 9:23 AM
To: Midrange-L Midrange-l; Web400@Midrange. Com
Subject: localhost weirdness
(Cross posted to Midrange and Web400)
Having a really weird problem with some PHP scripts that use DB2 connections and the i5_xxxx APIs.
Started when we moved to a new box (which is literally a clone of the original) - scripts that used 'localhost' started failing. Changing to 127.0.0.1 fixed it.
Other problems forced us to switch back to the old box which prior to switching out had been working just fine. It started failing in the same way - only thing that had happened in between was an IPL. No PHP upgrade, no code changes, nothing. Again switching to 127... fixed it.
Opened PMR and IBM requested a trace. No problem - change the script back. Now the original scripts work again with localhost - yet other scripts that use it still fail! Arrrgh - this is beginning to feel like Windows !!
Has anyone experienced anything similar?
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l