How to Lookup a CNAME via SSH Updated on August 16, 2021 by InMotion Hosting Contributor 0 Minutes, 47 Seconds to Read In this tutorial, we will show you how to lookup a CNAME record using SSH. This can be an important step when troubleshooting redirect issues. Performing this test via SSH can save time, since it can be done right in a terminal. We also have a helpful guide on how to create a CNAME record. CNAME Lookup Login to your server via SSH. Run the following CNAME lookup command. Be sure to replace example.com with the domain you want to check. host -t cname example.com You should see a response similar to this, but it will differ based on the specific domain. example.com is an alias for test.travelworld58.com. In this example, you see the domain is an alias of another URL. If the domain does not have a CNAME you will see the following result: example.com has no CNAME record Congratulations, now you know how to lookup a CNAME record using SSH! Share this Article IC InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles SSH Commands: The Practical Guide for Developers and Site Owners How to Connect to Your Server with SSH How to Use SCP For Secure File Transfer A Complete SSH Tutorial for Beginners How to Connect to Your Server via SSH How to View MariaDB Databases Using the Command Line How to Add SSH Keys to Your GitHub Account How to Change Directories using SSH Commands How to SSH Into Your Shared/Reseller Server Viewing Running Processes on your Dedicated Server