From: urgrue Subject: Re: ip route refresh Date: Sat, 31 Jul 2004 20:28:54 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20040731172854.GA751@cow2.intra.tumsan.fi> References: <200407301840.06241.fluca1978@infinito.it> <16650.52490.628044.300259@cerise.nosuchdomain.co.uk> <200407311013.07001.fluca1978@infinito.it> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <200407311013.07001.fluca1978@infinito.it> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Luca Ferrari Cc: linux-admin@vger.kernel.org > No, it's not, since I've experienced it also using direct addresses. I mean, > if you ping 192.168.1.201 the packets will follow a particular way. If you > change your kernel route (thru 'route') and try to ping immediately the same > host, the pakets will try to reach the host with the same way (if it is still > valid). Nevertheless these are two different mechanisms and two different "caches" we're talking about. What route a packet takes is decided by a completely different system as what IP an address maps to. iptables also has a kind of "cache" but that doesn't mean it has anything to with /etc/hosts or routing. For routes, try "ip route flush table cache" (this is from memory, but it was something like that). For name services, nscd is the only thing i can think of that might cause the behaviour you described (/etc/hosts change not taking immediate effect).