Querying DNS Client Configuration from the Command Line

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

Knowing how to locate DNS information, and how to perform queries using the configured DNS host (as well as other hosts), is a useful skill. In this hands-on lab, we’ll verify the network DNS configuration settings and perform several DNS queries.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Determine the Configured DNS Host

Determine the Configured DNS Host by checking the /etc/resolv.conf file.

Perform a DNS Lookup on www.acloudguru.com Using the Configured DNS Host

Utilize the host and dig commands to query www.acloudguru.com and observe the results.

Perform a DNS Lookup of www.acloudguru.com Using Another DNS Host

Utilize the host and dig commands to query www.acloudguru.com utilizing another DNS host and observe the results.
Note: The DNS host for CloudFlare (1.1.1.1) was used as an example, but you can also use Google DNS (8.8.8.8 or 8.8.4.4).

Test Connectivity to www.linuxacademy.com

Utilize the ping and curl commands to test connectivity to www.acloudguru.com and observe the results.

Additional Resources

We have been asked to troubleshoot an issue with www.acloudguru.com. One of the developers is having trouble reaching the host from this server, and has asked us to verify connectivity.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?