Names are looked up in order: the hosts file first, then DNS, as nsswitch.conf says. dig and host talk to DNS directly, getent follows the whole chain.
16 minutes
6 quiz questions
Lab: 8 steps
Pro
Loading the lesson…
Lesson 21 of 29
Name resolution
16 min
Name resolution
Names are looked up in order: the hosts file first, then DNS, as nsswitch.conf says. dig and host talk to DNS directly, getent follows the whole chain.
16 minutes
6 quiz questions
Lab: 8 steps
Pro
Sign in to continue
This lesson is part of Pro.
A free account saves your progress and opens every free lesson, quiz and lab. In this course that is the whole first module, Shell environment and scripts.