Mission 352

Local name resolution

Compare hostname, hosts-file, and resolver configuration evidence.

Networking
8 minutes Admin Lesson 352 of 360
hostnamecatgrep
Lesson 352 of 360 0/360 lessons 0/17 missions Networking · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Read the local hostname

Run hostname.

hostname
Read local host mappings

Run cat /etc/hosts.

cat /etc/hosts
Read the configured resolver

Run grep nameserver /etc/resolv.conf.

grep nameserver /etc/resolv.conf
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with understanding local name-resolution inputs.

Hint

Start with hostname, inspect the result, then continue in order.

Why it matters

Understanding local name-resolution inputs helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves understanding local name-resolution inputs.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

cat <file>

Print text file contents.

grep [-i] <text> <file>

Find literal text inside a file.