Kindovic Posted September 19, 2008 Share Posted September 19, 2008 Hi guys,may i know wats the difference between ping -a and nslookup? In which situation should we use ping -a instead of nslookup and vice versa? I know both can resolve IP address to hostname...Correct me if i'm wrongThanks Link to comment Share on other sites More sharing options...
IcemanND Posted September 19, 2008 Share Posted September 19, 2008 Ping sends a request to the client for a response, which will let you know if the machine is on the network if it is configured to respond.nslookup only queries the configured or selected DNS server for the hostname Link to comment Share on other sites More sharing options...
Kindovic Posted September 19, 2008 Author Share Posted September 19, 2008 does tat mean that ping -a does not require the dns to be alive?? Link to comment Share on other sites More sharing options...
gamehead200 Posted September 19, 2008 Share Posted September 19, 2008 does tat mean that ping -a does not require the dns to be alive??The "ping" command depends on a DNS server to translate the hostname into an IP address. Link to comment Share on other sites More sharing options...
Kindovic Posted September 19, 2008 Author Share Posted September 19, 2008 so tat means ping -a will actually send a ping packet to the target machine while nslookup will not send any packet to the target machine as it will only query the dns? Link to comment Share on other sites More sharing options...
Guest Odi719 Posted September 19, 2008 Share Posted September 19, 2008 so tat means ping -a will actually send a ping packet to the target machine while nslookup will not send any packet to the target machine as it will only query the dns?You got it. ping -a sends the packet to the target machine, and the nslookup query's the dns. Link to comment Share on other sites More sharing options...
Kindovic Posted September 20, 2008 Author Share Posted September 20, 2008 icic, thanks all for ur help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now