PDA

View Full Version : Strange IP address



gharris999
2008-01-23, 20:38
I just did a new install of SC7 via "yum install squeezecenter". The default server.prefs file includes a strange IP address in the "allowedHosts" entry: 208.67.217.130. Is that SN beta? I can't get any DNS resolution on that IP, can't ping it, can't traceroute to it.

andyg
2008-01-23, 21:02
On Jan 23, 2008, at 10:38 PM, gharris999 wrote:

>
> I just did a new install of SC7 via "yum install squeezecenter". The
> default server.prefs file includes a strange IP address in the
> "allowedHosts" entry: 208.67.217.130. Is that SN beta? I can't get
> any DNS resolution on that IP, can't ping it, can't traceroute to it.

Nope, not ours.

andyg
2008-01-23, 21:33
The allowedHosts pref defaults to Slim::Utils::Network::hostAddr() which attempts to detect your system's IP address. Could it be your own address?

andyg
2008-01-23, 21:52
OK we figured it out. :) Are you using OpenDNS for your DNS service? That IP is one of the OpenDNS search engine servers.

The way that bit of code determines your address is a bit wrong, it finds your hostname using Sys::Hostname and then does a DNS lookup on it. I'm guessing what happened is your hostname is fake and your local DNS server doesn't know about it, and so it resolved to the default OpenDNS search engine IP address.

Try running this little one-liner to see what it thinks your hostname is:

perl -MSys::Hostname -e 'print Sys::Hostname::hostname()';

We should probably change that bit of code to get your local IP address another way that doesn't involve DNS.

gharris999
2008-01-24, 20:19
Yes, I've got my router set up to use OpenDNS. My ISP (Wildblue) can't seem to keep their own DNS servers running half the time.

Funny, I would have expected to see something in a traceroute that would give me a clue that that IP belongs to OpenDNS. And, in fact, now that I look at it, the last server I pull up in the traceroute before it hangs is fa-0.opendns.nycmny01.us.bb.gin.ntt.net. But that server isn't even on the same subnet.

Oh well, thanks for enlightening me on this. YAMMS: yet another minor mystery solved.