Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Why do all my browsers to resolve www.LEG.com to my LocalHost home page?

Why do all my browsers to resolve www.LEG.com to my LocalHost home page?
Thread Tools
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 14, 2010, 12:46 PM
 
Being accustomed to typing: legacy... to go to MacNN legacy version, I accidentally hit return after only "leg" ...
which resolved to leg.com and to Welcome to LEG.COM
...which displayed the home page of my LocalHost (Apache) on iMac w/ 10.6.3

Something bizarre about my system? or about "LEG.com"?

PS: if I type leg.com into whois I discover that it IS a registered domain. But my Mac wants it to be my LocalHost
:/

EDIT: PPS: If I google "leg.com" then, yes, "www.leg.com" is first result returned. But clicking on the link takes me to localhost.
The mystery is killing me.
TOMBSTONE: "He's trashed his last preferences"
     
ghporter
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Apr 14, 2010, 09:01 PM
 
Your DNS cache is apparently "goobered." For 10.5 and later, you open Terminal and enter:
Code:
sudo dscacheutil -flushcache
While this fix is very simple sounding, it will work 100% if it's just your DNS cache (which, by the way, is global to your machine). For a short time, your initial web page requests will take a little longer as the machine has to retrieve DNS data for each URL, but the cache will fill again quite quickly.

Glenn -----OTR/L, MOT, Tx
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Apr 15, 2010, 04:15 AM
 
Originally Posted by Love Calm Quiet View Post
Being accustomed to typing: legacy... to go to MacNN legacy version, I accidentally hit return after only "leg" ...
which resolved to leg.com and to Welcome to LEG.COM
...which displayed the home page of my LocalHost (Apache) on iMac w/ 10.6.3

Something bizarre about my system? or about "LEG.com"?

PS: if I type leg.com into whois I discover that it IS a registered domain. But my Mac wants it to be my LocalHost
:/

EDIT: PPS: If I google "leg.com" then, yes, "www.leg.com" is first result returned. But clicking on the link takes me to localhost.
The mystery is killing me.
That’s quite odd, really—going to leg.com takes me to my default Apache page, too (and in Danish, too). So I’m guessing it’s not just your DNS cache that’s messed up.

Looks more like perhaps the actual index page on leg.com contains a redirect to localhost.
     
Spheric Harlot
Clinically Insane
Join Date: Nov 1999
Location: 888500128, C3, 2nd soft.
Status: Offline
Reply With Quote
Apr 15, 2010, 05:33 AM
 
Works fine on the iPhone. It's a domainsquatter site.
     
ghporter
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Apr 15, 2010, 07:20 AM
 
Yup, "Godaddy" has it. Perhaps there is some sort of "let's not waste our customers' time with Godaddy sites" thing with your ISPs...

Glenn -----OTR/L, MOT, Tx
     
Love Calm Quiet  (op)
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 15, 2010, 10:39 AM
 
Interesting possibilities, guys.

FWIW: Further info. Two of three Macs and 1 Dell here experience this same phenomenon... so it can't be ISP. Something about DNS cache (or Apache?)...

[ I'm waiting for other ideas before I dabble in clearing DNS cache ]
TOMBSTONE: "He's trashed his last preferences"
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Apr 15, 2010, 10:41 AM
 
What DNS are you using?

Does the behavior change if you switch to Google Public DNS? 8.8.8.8, 8.8.4.4
     
Love Calm Quiet  (op)
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 15, 2010, 10:58 AM
 
Actually, on *this* iMac I've got listed:
4.2.2.1
4.2.2.2
8.8.8.8
8.8.4.4
[ BTW: are they attempted in the order listed - and does it hurt to have more than the (usual?) two? ]
TOMBSTONE: "He's trashed his last preferences"
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Apr 15, 2010, 11:53 AM
 
I'd remove all the others and try just Google's. You can also use OpenDNS' at 208.67.222.222, 208.67.220.220.
     
Love Calm Quiet  (op)
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 15, 2010, 12:14 PM
 
Thanks for the OpenDNS suggestion, Simon.

Interestingly, even stripping down to just google's (& restart) changed nothing.
TOMBSTONE: "He's trashed his last preferences"
     
Love Calm Quiet  (op)
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 15, 2010, 12:22 PM
 
Okay, have now tried GHPorter's suggestion of
>> sudo dscacheutil -flushcache
And restarted
And tried the OpenDNS settings.

No changes.

Only other clue: the two machines (one Intel, one PPC) that keep offering LocalHost instead of leg.com have had first LAMP and then MacPorts installs
...any possible relation?
TOMBSTONE: "He's trashed his last preferences"
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Apr 15, 2010, 04:39 PM
 
Originally Posted by Love Calm Quiet View Post
FWIW: Further info. Two of three Macs and 1 Dell here experience this same phenomenon... so it can't be ISP. Something about DNS cache (or Apache?)...
Just to confirm that it’s not the ISP: I have three different networks available here, through two different ISPs; and two Macs (a Mac Pro and a MacBook). The MacBook resolves leg.com to the domainsquatter site on all three networks, and the Mac Pro resolves it to localhost on all three. One network uses Google’s DNS servers, the other two use identical ones (don’t know which, they both begin in 81.88).

Neither machine has had anything ‘special’, like LAMP or MacPorts, installed. In fact, I think their installs are pretty identical, as far as apps and plugins and things go. The OS is different, though: the MacBook is on 10.5.8 while the Mac Pro is on 10.6.3.
     
Love Calm Quiet  (op)
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 15, 2010, 05:47 PM
 
Thank you, thank you, Oisin...
So good to find out I didn't just get slipped some peyote.

For me also, the phenomenon crosses System versions:
Resolving to LocalHost: iMac 10.6.3, PowerBook 10.5.8
Resolving correctly to domain-squatted Leg.com: MacBook 10.5.8 & Dell/XP
TOMBSTONE: "He's trashed his last preferences"
     
ghporter
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Apr 15, 2010, 07:49 PM
 
Very odd stuff, Love. I'm completely out of ideas here.

Glenn -----OTR/L, MOT, Tx
     
Love Calm Quiet  (op)
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 15, 2010, 09:31 PM
 
@ghp: Thanks for dedicating the cpu cycles to it.
It's not really a worry to me personally.
But it does seem rather unsettling that such a phenomenon can occur inexplicably on occasional systems with no readily apparent pattern/explanation.
Anybody have any street cred with apple to submit such - or suggest how I should (when there's not even a crash)?
I can't even describe it as a Safari problem, since I can get it on FF, Chrome, Camino, whatever.
TOMBSTONE: "He's trashed his last preferences"
     
Love Calm Quiet  (op)
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Apr 15, 2010, 09:35 PM
 
However,
A ping to leg.com gives:
64 bytes from 68.178.232.143: icmp_seq=3 ttl=110 time=77.941 ms

But a ping to localhost gives:
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.063 ms

So it appears that terminal goes somewhere OTHER than localhost.

Oh, but putting 68.178.232.143 in the browser gives me a "sorry site not available" rather than localhost

::clueless here::
TOMBSTONE: "He's trashed his last preferences"
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Apr 16, 2010, 04:19 AM
 
Well, it would very likely, since 68.178.232.143 is probably just the IP address of the server that hosts leg.com, but also hosts other sites. Without a URL, it won’t know which folder (=domain) to forward you to, and the root directory of the server is not defined as any site at all, so it’s unavailable.

A whois for the IP gives:
Code:
NAVAHOST.ABOUTDOTS.COM NS1.TUNED2ME.COM NS2.TUNED2ME.COM
     
Spheric Harlot
Clinically Insane
Join Date: Nov 1999
Location: 888500128, C3, 2nd soft.
Status: Offline
Reply With Quote
Apr 16, 2010, 04:54 AM
 
Originally Posted by ghporter View Post
Very odd stuff, Love. I'm completely out of ideas here.
That's alright, Honey.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:00 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,