Jump to content

Ping -a and Nslookup


Recommended Posts

Posted

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 wrong

Thanks


Posted

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

Posted

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?

Posted
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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...