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?

6

1 Answer

Try using ping instead:

$ ping server2 

nslookup and ping use different techniques for name resolution.

An in-depth explanation for this can be found here:

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy