DNS Full meaning is Domain Name System. The Domain name system(DNS) was invented to eliminate the hassle of remembering IP addresses. At present, the domain name of the website is used but basically, the website is loaded through an IP.
From which IP the website is loaded is stored in a database, along with many other records related to the website are kept in the same database and used as needed. When a visitor visits a website, the visitor’s web browser will collect the IP from that database and the browser will show the data of the specific website under that IP.
DNS database contains not only IP but also MX records for mail exchange, TXT records for various types of verification, SSL certificate verification CAA records and many more records, like: