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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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