redirects on http://opendns.org

Hello guys and girls!

I have a problem with local server. I installed ruby and rails, than started dev server at After typing in to web browser, it redirects me at OpenDNS | DNS-Based Web Security … why?

I setup DHCP in network configuration. Internet works fine.

Thank You.

Hash: SHA1

You either typo’d something or your browser is really, really messed up.
Typing 127.x.x.x (replacing ‘x’ with any valid IP digit from 0-255)
should always go to your local system. To verify post the output from
the following commands:

ip addr
ip route
netcat -zv 8080
netstat -planet | grep 'LISTEN ’

Good luck.

Want to yell at me in person?
Come to BrainShare 2011 in October: http://tinyurl.com/brainshare2011
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


user0707 wrote:
> I have a problem with local server. I installed ruby and rails, than
> started dev server at After typing in to
> web browser, it redirects me at ‘OpenDNS | DNS-Based Web Security’
> (http://opendns.org) … why?

Also, use wget instead of your browser to make the HTTP request. That
way you, and we, can see exactly what happened.

ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet brd scope host lo
inet brd scope host secondary lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1e:0b:a9:e6:96 brd ff:ff:ff:ff:ff:ff
inet brd scope global eth0

ip route dev eth0 proto kernel scope link src dev eth0 scope link dev lo scope link
default via dev eth0

netcat -zv 8080

localhost [] 80 (http) open

netstat -planet | grep 'LISTEN '

tcp 0 0* LISTEN 0 4969 2359/rpcbind
tcp 0 0* LISTEN 0 56106 6479/ruby
tcp 0 0* LISTEN 0 7554 2330/sshd
tcp 0 0* LISTEN 0 8237 2434/cupsd
tcp 0 0* LISTEN 0 5100 2516/master
tcp 0 0 :::111 :::* LISTEN 0 4974 2359/rpcbind
tcp 0 0 :::22 :::* LISTEN 0 7556 2330/sshd

Also please do:

cat /etc/hosts

It’s “fresh” installation, I do not modify anything.

cat /etc/hosts

hosts This file describes a number of hostname-to-address

mappings for the TCP/IP subsystem. It is mostly

used at boot time, when no name servers are running.

On small systems, this file can be used instead of a

“named” name server.


IP-Address Full-Qualified-Hostname Short-Hostname localhost

special IPv6 addresses

::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts linux-oa9d.site linux-oa9d

Is this setup one machine or two? Is the web browser on the same machine as the RoR server?

Some odd things: Ruby is listening on port 80, not port 8080. This means you must have run RoR as root, which is not good practice. Another odd thing is that you asked netcat to scan port 8080, but the answer says port 80.

Please post results within code tags so that we can see if you have put some spaces where you are not supposed to.

Also what release of openSUSE, in case that is important?

One machine. Yes.

I tried on different one (8080, 80 (with sudo), 8181 etc.)

I didn’t modified any config file, so there is no possibility to find some syntax error.



asking libproxy about url ''
libproxy suggest to use 'direct://'
--2011-10-10 17:05:41--
Connecting connected.
Localization: http://www.
asking libproxy about url 'http://www.'
libproxy suggest to use 'direct://'
--2011-10-10 17:05:41--  http://www.
translation www.
Connecting www.||:80... connected.
(...) 303 See Other
Localization: http://guide.a.id.opendns.com/?url=www%2E127%2E0%2E0%2E1
asking libproxy about url 'http://guide.a.id.opendns.com/?url=www%2E127%2E0%2E0%2E1'
libproxy suggest to use 'direct://'
--2011-10-10 17:05:42--  http://guide.a.id.opendns.com/?url=www%2E127%2E0%2E0%2E1
Translation guide.a.id.opendns.com...


--2011-10-10 17:05:42--  http://guide.opendns.com/?url=www%2E127%2E0%2E0%2E1
Translation guide.opendns.com...
Connecting guide.opendns.com||:80... connected.
(...)... 200 OK
Length: 1270 (1,2K) [text/html]
Save to: `index.html?url=www.'

100%==========================================================================================================================================&gt;] 1.270       --.-K/s   w  0s      

2011-10-10 17:05:43 (93,5 MB/s) - saved `index.html?url=www.' [1270/1270]

Reinstalled system => everything works fine now.