From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Debug errors related to name resolution

Debug errors related to name resolution - Linux Tutorial

From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Start my 1-month free trial

Debug errors related to name resolution

- [Narrator] It's important to have a working DNS setup. The exam only specifies setting up a caching-only name server, which passes queries under a master server and caches the results. However, there are many things that can happen that keep the client from functioning. First, let's double-check the /etc/nsswitch file. Type in less /etc/nsswitch.conf and hit enter. You'll want to go down to the host line. These entries are used in order of left to right. The first attempt at name resolution will go to local files. This means the /etc/hosts file, which we modified at the beginning of this course. After that, it will attempt to resolve via DNS. Press Q. Now let's take a look at the /etc/hosts file. Any attempt to reach rhhost1, nolocalnet.com, or rhhost1 will go to the IP address in the first column. If this IP address isn't correct, then name resolution will fail. Most of the troubleshooting I've had to do to make the…

Contents