Get Domain Name Linux Command Line. This guide will help you understand and use the Linux dig command. Print 1.
Dig Domain Information Groper is a command line utility that performs DNS lookup by querying name servers and displaying the result to you. The dig command is helpful for diagnosing DNS problems but is also used to display DNS information. However both commands will only display.
Using the WHOIS Command in the Linux Command Line Open up your SSH client.
This option is used to get the Domain if local domains are set. Simply type echo computername in the Command Prompt and press Enter. Displays the alias name of the host-A --all-fqdns. Dig is an acronym for Domain Information Groper.