Life of a Packet Flashcards
DNS
Domain Name System:
Resolves a FQDN to an IP
Enterprises typically have an internal DNS server
If the internal server cannot resolve a query, it will be forwarded to a public DNS server
ARP
Address Resolution Protocol:
Used to map an IP address to a MAC address
Command: Allow router to resolve host names
ip domain-lookup
Command: Set the DNS server to 172.23.4.1
ip name-server 172.23.4.1
Command: Set a domain name
ip domain-name FlackboxA.lab
Command: Add additional DNS suffixes to search
ip domain-list FlackboxB.lab
Command: Make router act as DNS server
ip dns server
Command: Assign host name LinuxA to 172.23.4.2
ip host LinuxA 172.23.4.2
Command: View & Clear ARP Cache
show arp
(View ARP Cache)
clear arp-cache
(Clear ARP Cache)
Host ARP Commands (Windows/Linux)
Windows:
View ARP Cache: arp -a
Clear ARP Cache: netsh interface ip delete arpcache
Linux:
View ARP Cache: arp -n
Clear ARP Cache: ip -s -s neigh flush all