Networking: Difference between revisions

From mylearnings
Jump to navigationJump to search
Line 17: Line 17:
pristal@personal-system:~$  
pristal@personal-system:~$  
</pre>
</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>
** Here the priority is set to ''10''


= NetCat Command =
= NetCat Command =

Revision as of 08:47, 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:~$ 
    • Here the priority is set to 10

NetCat Command

  • nc

Dig Command

  • dig

Nmap Command

Curl Command

Wget Command