Section 4: Tools of the Trade Flashcards
What is “ping”?
A dns tool. It resolves web addresses to an IP address.
> ping www.website.com
How do you check IPV4 with ping?
> ping www.google.com -4
Use the -4 flag
How do you check if you have an intermittent connection?
> ping -t www.google.com
Windows only!! You do not need the -t flag for linux systems
What is netstat?
Shows what hosts you are currently connected to.
> netstat -n
Shows what you are connected to currently. Shows each tab you have open on a browser - addresses ending 443 are https.
What does this command do?
> netstat -a
Shows all open ports to see what ports are listening. Port 80 is okay!
What is “tracert”?
Trace Route - see what routers are being hit.
> tracert www.google.com
E.g.
First line is the internal router
Second is the comcast router.
If you can’t trace route someone you can confirm if the issue is internal if the issue fails on the first 2 lines.
What is “arp”?
ARP - Address Resolution Protocol
Can see if something is going wrong with switches. Can resolve an ethernet mac address from an IP address.
> arp -a
Shows the arp cache - dynamic and static addresses. Looking out for an “arp poisoner”. Can easily see if a nic is wrong.
What is “ipconfig”?
ipconfig (windows), ip (linux)
Shows IPV6 and IPV4 addresses on the Ethernet Adapter.
> ipconfig -all
Windows command with a bunch of info and shows the MAC Address.
> ip addr
Linux version of ipconfig - shows MAC Address
> nslookup www.google.com
Helps with dns issues. Use to query dns server and check things. Shows IP address for the queried website.
How do you change the dns server temporarily?
> nslookup
To enter the interactive mode
> server 8.8.8.8
Use the 8.8.8.8 server and see if the issue goes away.
What is “dig”?
Linux only. Shows any cached info too.
> dig www.google.com
Can also change the server
> dig @8.8.8.8
How to get an MX record?
> dig MX www.google.com