100-150 CCST ยท Troubleshooting and device commands
ipconfig, ifconfig, ip and nslookup
Viewing IP configuration on Windows, Linux and macOS, and testing name resolution with nslookup.
Key points
- Windows shows IP settings with ipconfig (ipconfig /all adds DNS servers and MAC).
- Linux uses ip address (or the older ifconfig); macOS uses ifconfig. nslookup queries DNS: 'nslookup name' resolves a name, and a second argument selects which DNS server to ask. ipconfig /flushdns clears the Windows resolver cache.
Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup
Practice questions
Which Windows command displays the full IP configuration, including DNS servers, for all adapters?
- nslookup /all
- ipconfig /all
- tracert /all
- ping /all
Show answer
Answer: B. ipconfig /all
ipconfig /all prints the complete configuration. Plain ipconfig gives only the basics, and nslookup and tracert do other jobs.
Which commands can display a host's IP configuration?
- ipconfig
- nslookup
- ifconfig
- tracert
- ip address
Show answer
Answer: A. ipconfig, C. ifconfig, E. ip address
ipconfig on Windows, ifconfig on macOS and older Linux, and ip address on modern Linux. nslookup queries DNS and tracert traces a path.
nslookup tells you whether a host answers ICMP echo requests.
Show answer
Answer: False
False. nslookup queries DNS to turn names into addresses and back; ping tests ICMP reachability.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
