This is a discussion on Strange resolve problem - Redhat ; I set up a system station2. Server1 I set up with DNS /etc/resolv.conf ------------------------- 192.168.0.1 /etc/host ------------------------ 127.0.0.1 station2.example.com station2 localhost localhost.localdomain Whenever I do nslookup I for server1 I get the correct answer back 192.168.0.1. The same for whenever ...
I set up a system station2.
Server1 I set up with DNS
/etc/resolv.conf
-------------------------
192.168.0.1
/etc/host
------------------------
127.0.0.1 station2.example.com station2 localhost
localhost.localdomain
Whenever I do nslookup I for server1 I get the correct answer back
192.168.0.1. The same for whenever I lookup
station2 192.168.0.2.
But when I'm on station2 and try to ping station one it pings
127.0.0.1
ping station2
When I ping server1 it pings 127.0.0.1.
When I ssh from station2 to server1 I find myself right back on
station2
ssh station2
So basically I ssh'ed to 127.0.0.1