[H-GEN] Stopping nameserver lookup for local subnet

Matthew Sellers msellers at bigpond.com
Tue Feb 13 22:21:03 EST 2001


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

I have set up a household network being masqueraded onto the internet
through a redhat 6.1 box. The network works fine except that if I try to
access the machines on the local network by hostname then the host will
always query my ISP name server before querying my local hosts file. Thus
causing a delay of 10 to 15 seconds.

from /etc/hosts (192.168.105.128)
127.0.0.1       dorfl.discworld dorfl localhost
192.168.105.38  luggage.discworld luggage

from /etc/host.conf (192.168.105.128)
order hosts,bind
multi off

I thought that this should prevent nameserver lookups of hosts present 
in /etc/hosts

Does someone know what I am missing?

139.134.5.51 is my ISP nameserver
192.168.105.38 is luggage, the masquerading gateway (RH6.1 Linux 2.2.12-20)
192.168.105.128 is my computer (Debian Woody Linux 2.4.0)

This is the network activity from the command
>$telnet luggage

from ethereal
No. Time        Source            Destination      Protocol Info
 1 0.000000    192.168.105.128   139.134.5.51       DNS     Standard query AAAA luggage
 2 0.000541    192.168.105.38    192.168.105.128    ICMP    Destination unreachable
 3 5.007300    192.168.105.128   139.134.5.51       DNS     Standard query AAAA luggage
 4 5.007779    192.168.105.38    192.168.105.128    ICMP    Destination unreachable
 5 10.020635   192.168.105.128   192.168.105.38     TCP     1124 > 23 [SYN] Seq=3319157000 Ack=0 Win=5840 Len=0
 6 10.021094   192.168.105.38    192.168.105.128    TCP     23 > 1124 [SYN, ACK] Seq=3795318121 Ack=3319157001 Win=321
20 Len=0
 7 10.021235   192.168.105.128   192.168.105.38     TCP     1124 > 23 [ACK] Seq=3319157001 Ack=3795318122 Win=5840 Len
=0
 8 10.024069   192.168.105.128   192.168.105.38     TELNET  Telnet Data ...
 9 10.024524   192.168.105.38    192.168.105.128    TCP     23 > 1124 [ACK] Seq=3795318122 Ack=3319157025 Win=32120 Le
n=0
10 10.033359   192.168.105.38    192.168.105.128    TELNET  Telnet Data ...
11 10.033484   192.168.105.128   192.168.105.38     TCP     1124 > 23 [ACK] Seq=3319157025 Ack=3795318134 Win=5840 Len
=0
12 10.033914   192.168.105.38    192.168.105.128    TELNET  Telnet Data ...
13 10.033986   192.168.105.128   192.168.105.38     TCP     1124 > 23 [ACK] Seq=3319157025 Ack=3795318149 Win=5840 Len
=0
14 10.065130   192.168.105.128   192.168.105.38     TELNET  Telnet Data ...
15 10.065608   192.168.105.38    192.168.105.128    TELNET  Telnet Data ...
16 10.100869   192.168.105.128   192.168.105.38     TCP     1124 > 23 [ACK] Seq=3319157037 Ack=3795318167 Win=5840 Len
=0
17 10.204758   192.168.105.128   192.168.105.38     TELNET  Telnet Data ...
18 10.205910   192.168.105.38    192.168.105.128    TELNET  Telnet Data ...
19 10.206346   192.168.105.128   192.168.105.38     TCP     1124 > 23 [ACK] Seq=3319157071 Ack=3795318170 Win=5840 Len
=0
20 10.206587   192.168.105.128   192.168.105.38     TELNET  Telnet Data ...
21 10.218308   192.168.105.38    192.168.105.128    TELNET  Telnet Data ...
22 10.218976   192.168.105.128   192.168.105.38     TELNET  Telnet Data ...
23 10.219409   192.168.105.38    192.168.105.128    TELNET  Telnet Data ...
24 10.257014   192.168.105.128   192.168.105.38     TCP     1124 > 23 [ACK] Seq=3319157077 Ack=3795318248 Win=5840 Len
=0




--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list