|
destination route using hostname
It is not possible, because the package iproute2 used in network scripts, does not support routing by destination using hostnames.
In Centos 4.5
Ex:
#ip route add linux.com via 192.168.1.1
#Error: an inet prefix is expected rather than "linux.com".
ping linux.com
#PING linux.com (66.35.250.176) 56(84) bytes of data
#ip route add 66.35.250.176 via 192.168.1.1
ip route ls|grep 66.35
66.35.250.176 via 192.168.1.1 dev eth0
Hever Costa Rocha
|