What is a Name server and how it works? How connect VPS to Domain?

Posted April 8, 2016 9.9k views
CentOSFAQDNSConfiguration ManagementControl PanelsQuickstart

What are nameservers like “” and “”?

I have a domein called Removed, I want to host sites in it with my VPS, I know i need to install a webpanel like VestaCP, How can i connect my domain to my vps example:


Do i need to add A and CNAME records to my vps ip in the DNS control panel on my Domain?

And how can i remove IP/DOMAIN:PORTOFPANEL and make it panel.DOMAIN.COM?

Greetings Juul.

A Dutch student ;)

edited by wpa

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers


A domain’s nameservers are what provide the mapping from the domain name to an actual IP address, so that browsers and other clients know what server they should connect to. Since your domain’s nameservers are, you will need to add any DNS records using DigitalOcean’s control panel.

According to a member of the VestaCP Team, it is not possible to host the control panel on port 80 or 443 (HTTPS). However, you can still add an A record called panel and point it to your Droplet. Once you’ve done that, you will be able to access the control panel by browsing to

Theoretically, though, it is possible to configure Apache to proxy to by adding a virtualhost that looks like this:

<VirtualHost *:80>
    ProxyPreserveHost On

    ProxyPass /
    ProxyPassReverse /

I have never used VestaCP myself before, so I do not know if that will break anything, but you can always give it a shot and just delete it if it doesn’t work. Good luck!

by O.S. Tezer
In this DigitalOcean article, we are going to see set up Apache on Ubuntu 13 and use it as a reverse-proxy to welcome incoming connections and redirect them to application server(s) running on the same network. For this purpose, we are going to use and work with the mod_proxy extension and several other related Apache modules.

When you purchase a domain you will get a name server and your website will address to that name server. However, you can run a website with help of IP address also.