I have two linux servers and i'm trying to access them remotely. I know the ip of the first server but i forgot the ip of the other one.
I'm trying to use nslookup, I did
nslookup server2
and the output was:
Server: 192.168.2.1
Address: 192.168.2.1#53
Non-authoritative answer:
Name: server2
Address: 90.222.143.15
and then i tried to use it again but with server1 and I got the same output...
Anyway, why is the output the same for both server? is nslookup the better option to find out the ip of the other linux server that i have? What other option can I use?
server1
,server2
are not FQDN and the response is coming from192.168.2.1
..usenslookup server2.whatever.com 8.8.8.8
to check from Google's DNS, replacewhatever.com
with the actual domain name..nslookup IP_of_server1 8.8.8.8
and you should get the domain name if it has one entered..nslookup 69.30.1.10 8.8.8.8
that means the IP of server1 is69.30.1.10
and hence the IP of server2 should be90.222.143.15
..right ?