Kindovic Posted September 19, 2008 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
IcemanND Posted September 19, 2008 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
Kindovic Posted September 19, 2008 Author Posted September 19, 2008 does tat mean that ping -a does not require the dns to be alive??
gamehead200 Posted September 19, 2008 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.
Kindovic Posted September 19, 2008 Author 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?
Guest Odi719 Posted September 19, 2008 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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now