A Name Server and a Domain Name works together from typing the domain name into the browser to having it display the web page. Below gives an easy, and better understanding on how Name Server and Domain Name have relationship towards each other.
When you type yourdomain.com in a browser, your browser will try to locate the IP address of the webserver where yourdomain.com is hosted.
The browser connects to a name server which translates yourdomain.com to your webserver IP using information from the domain database.
Once the webserver is found, it displays the pages for yourdomain.com in the browser. So in order for your website to be visible online, your domain name has to Point from the domain database to the IP of our webserver. That means your domain registration account has to have the correct DNS information, or you might be directed to some other website.