Re: route reads /etc/networks, but not /etc/hosts
On Fri, Jan 28, 2000 at 03:27:41PM +0100, Joop Stakenborg wrote:
> route, or netstat -r
>
> $ route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 195.96.97.241 * 255.255.255.255 UH 0 0 0 ppp0
> 44.137.40.122 * 255.255.255.255 UH 0 0 0 eth0
> default 195.96.97.241 0.0.0.0 UG 0 0 0 ppp0
Strange:
[9:32am] root@hamishpc:/home/hamish# strace route |& grep hosts
read(4, "order hosts,bind\nmulti on\n", 4096) = 26
open("/etc/hosts", O_RDONLY) = 4
[9:32am] root@hamishpc:/home/hamish# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.128 U 0 0 0 eth0
default silly.rising.co 0.0.0.0 UG 1 0 0 eth0
It certainly uses /etc/hosts here (although the name shown comes from DNS).
I have netbase 3.16-5 and libc6 2.1.2-9. (Probably old as I am a bit
behind in my apt-gets.)
Hamish
--
Hamish Moffatt VK3SB. CCs of replies on mailing lists are welcome.
Reply to: