Bitzu

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

Single choice

Which Windows command displays the full IP configuration, including DNS servers, for all adapters?

  1. nslookup /all
  2. ipconfig /all
  3. tracert /all
  4. 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.

Select all that apply

Which commands can display a host's IP configuration?

  1. ipconfig
  2. nslookup
  3. ifconfig
  4. tracert
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module