Find My Domain Name Linux. Cat etcresolvconf OR less etcresolvconf. Click on System and security and then on System.
If the computer isnt connected with a domain then only the local host name will be displayed. Use the same format as above to find subdomain records information. Click on System and security and then on System.
1 How to Lookup a Domain A Record on Linux Using the nslookup Command.
OR simply use the cat command as follows too. Linux find hostname using hostnamectl. Type nslookup and then press ENTER. Grep nameserver etcresolvconf nameserver 1097816420.