Steps for CNAME lookup via command

kumkumsharma

Administrator
Staff member
It will be very helpful if you are checking the CNAME with command because it will save time and make your task easy. Here are the steps for CNAME lookup:

  • Login SSH server as root.
  • You have to run below command:
Code:
host -t cname domain.com
Here you have to use your domain name in lace of example.com.

If domain.com is alias for test.hoststud.com.

If there is no CNAME record available for domain then you will get below result:

Code:
Domain.com has no CNAME record.
 
Top