There are many reasons why you might need to check your domain DNS records which are propagated on the internet. For instance, your website is not available ( it might be that DNS records are incorrect) or you need to check which DNS records are shown on the internet. Since Domain Name System (DNS) is used to point an incoming website domain toward the IP address of the server. It means that when you open website, the DNS records fetch the IP address of the server (there is the domain pointed) and serve the website.
So in this guide, I will show how to check your current domain DNS records with using provided commands and online tools.
Checking DNS records using command line
The most efficient way to check DNS records of the domain is to use a terminal with the command nslookup. This command will run on almost all operating systems (Windows, Linux and MacOS). The command nslookup shows all DNS records of the domain and below will be provided various nslookup command for the different DNS record types to check using command line.
For demonstration, I will use our domain name 'vpshosting.lk'. When you will open terminal window, type the following commands, just do not miss to replace 'vpshosting.lk'. with your domain name.
Lookup A record:
nslookup -type=A vpshosting.lk
Example output:

nslookup vpshosting.lk
Example output:

Lookup NS record:
nslookup -type=NS vpshosting.lk
Example output:

Lookup MX record:
nslookup -type=MX vpshosting.lk
Lookup CNAME record:
nslookup -type=CNAME vpshosting.lk
Lookup TXT record:
nslookup -type=TXT vpshosting.lk
Other DNS records you can check by replacing the DNS record type, for example, nslookup -type=SOA domain name.
Also, there are other commands which you can use to check DNS records, for example, ping or host.
The ping command shows domain A record - where the domain is pointed.
The host command runs on Linux and shows the IP address of a particular domain name or if you want to find out the domain name of a particular IP address.
Example output:
root@ieva:~# host vpshosting.lk
vpshosting.lk has address 104.20.125.46
vpshosting.lk has address 104.20.124.46
vpshosting.lk has IPv6 address 2606:4700:10::6814:7d2e
vpshosting.lk has IPv6 address 2606:4700:10::6814:7c2e
vpshosting.lk mail is handled by 10 mx. vpshosting.lk.
vpshosting.lk mail is handled by 20 mx-backup. vpshosting.lk.
Checking domain DNS records using online tools
If you do not have ability to check DNS records using command line, you can check records using online trusted tools. Down below are provided some online tools which you can use.
dnsrecords.io
The online tool where you can enter the domain name and all the domain DNS records will be provided - is the website fully propagated or not worldwide.
DNSChecker.org
This tool not only shows all DNS records for the domain, but also shows how those records are propagated on the internet.
Leaf DNS
This online tool shows domain DNS records. Also, this tool provides warnings and failures of the DNS records. So this leafdns tool will check if your DNS records are correct or no. It's quite helpful, for example, when you create custom nameservers for the domain.