Hi
I have a SLES 15.1 vm and its /etc/hosts looks like
127.0.0.1 localhost
192.168.0.80 host1.com
10.9.4.80 host1.com
When I ping host1.com it resolves to 10.9.4.80.
My understanding is it should ping 192.168.0.80 because it comes first. The ip of the server is 10.9.4.80 (eth0) and the default route is from this network. How do we change this behavior? . On SLES 11 I do not see this issue.
Thanks
-P