Networking: Difference between revisions

From mylearnings
Jump to navigationJump to search
Created page with "= NetCat Command = * nc = Dig Command = * dig = Nmap Command = = Curl Command = = Wget Command ="
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Host Command =
<pre>
pristal@personal-system:~$ host google.com
google.com has address 142.250.196.14
google.com has IPv6 address 2404:6800:4007:829::200e
google.com mail is handled by 10 smtp.google.com.
pristal@personal-system:~$
</pre>
* To get the nameservers associated with a domain,
<pre>
pristal@personal-system:~$ host -t ns google.com
google.com name server ns2.google.com.
google.com name server ns1.google.com.
google.com name server ns3.google.com.
google.com name server ns4.google.com.
pristal@personal-system:~$
</pre>
* To get the mailserver associated with a domain,
<pre>
pristal@personal-system:~$ host -t mx google.com
google.com mail is handled by 10 smtp.google.com.
pristal@personal-system:~$
</pre>
::- Mail server is ''smtp.google.com''
::- Here the priority is set to ''10''
= Nslookup command =
= NetCat Command =
= NetCat Command =
* nc
* nc

Latest revision as of 08:52, 18 May 2025

Host Command

pristal@personal-system:~$ host google.com
google.com has address 142.250.196.14
google.com has IPv6 address 2404:6800:4007:829::200e
google.com mail is handled by 10 smtp.google.com.
pristal@personal-system:~$ 
  • To get the nameservers associated with a domain,
pristal@personal-system:~$ host -t ns google.com
google.com name server ns2.google.com.
google.com name server ns1.google.com.
google.com name server ns3.google.com.
google.com name server ns4.google.com.
pristal@personal-system:~$ 
  • To get the mailserver associated with a domain,
pristal@personal-system:~$ host -t mx google.com
google.com mail is handled by 10 smtp.google.com.
pristal@personal-system:~$ 
- Mail server is smtp.google.com
- Here the priority is set to 10

Nslookup command

NetCat Command

  • nc

Dig Command

  • dig

Nmap Command

Curl Command

Wget Command