Mike Brown wrote:
On Fri, Jul 18, 2008 at 12:27:27PM +0900, Stephen J. Turnbull wrote:
> Mike Brown writes:
>
>  > I then changed the hosts file to look like:
>  >
>  >    192.168.1.1 mrvideo vidiot.com www.vidiot.com loghost
>
> Are you sure 192.168.1.1 isn't the DSL box?  192.168.1.1 is grabbed
> for themselves by many DSL boxes.  But whatever.

Yes. The first DSL box I got was one of those passive types, where the computer
is set to the actual IP.  The Linux server used two ports at that time and the
internal LAN had the server at 192.168.1.1.  The Linux server did the
firewalling and NAT processing.  When the upgraded DSL connection was done,
it used new equipment and a new modem.  So I assigned 192.168.1.254 to the
DSL NAT box and that is used as the gateway address by all of the LAN
computers.

> Anyway, changing that to 127.0.0.1 should do what you want; the DSL
> box can't get its hands on that since it never leaves the local host
> at all.

Good idea, didn't think of doing it there.  So now the hosts file looks like:

        127.0.0.1       localhost www.vdiot.com vidiot.com

Doing a ping got the right results:

        mrvideo.ZROOT <64> ping -s vidiot.com
        PING vidiot.com: 56 data bytes
        64 bytes from localhost (127.0.0.1): icmp_seq=0. time=0.0620 ms

That is a good sign.

All went to pieces after that.  Putting vidiot.com as the URL got the damn
DSL modem's web page again.  That is just not right.  As you say, that should
be impossible.

Back to the drawing board to figure out what is going on with those packets.

BTW, the packets are really going to the DSL modem, because when I disconnect
the LAN cable to the bax, the browser freezes until I reconnect it, and the
pages gets loaded.
---------------- End original message. ---------------------

This is seriously off-topic for this list but here goes anyway...


Do you have a host.conf file on your system? (You should in the /etc directory)

If so, does it have something like this in it?

order bind hosts


If so, reverse the order of lookup to:

order hosts bind


That will ensure that the IP address resolution is driven by what is in the hosts file before it goes out to any DNS server.

More info:
http://tldp.org/LDP/nag/node82.html



Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to