Connecting Your Server With Your Domain Using Free DNS Manager
| |Setting Up DNS To Make Your Domain Resolves To Your Server. May be you’ve already installed all necessary software like Apache or Nginx, MySQL, PHP5 and an email server. Lets say your server is ready to host your website or blog but the next big question is how to make your server accessible by entering a domain name in web browser? For that purpose all you really need is to setup proper DNS entries for your domain but you’ll also need a DNS Manager app. You don’t have to be a server Ninja to do that. Here in this page I’ll tell you the basic and common DNS settings to make your server (either VPS or Dedicated) connected to your domain so it is accessible easily by simply typing your domain name in the browser.
There are several ways you can do that:
- Using DNS Manager provided by Domain Registrar
Mostly big domain registrar companies like GoDaddy and NameCheap are featured with built-in DNS Manager where users can add, edit and delete records. - Using FREE or Paid DNS Manager service
In contrary, there are also many hosting companies those are also selling domains are not having such feature leaving its users to look for alternative options. Luckily, there are several free services provide ability to manage DNS entries of a domain name. Some free ones: NameCheap, EntryDNS, Hurricane Electric, YPDNS, CloudDNS, DNSEver, Xname, and many others. But the best one for me is CloudFlare, a free CDN (Content Delivery Network) service with ability to add, edit, and manage DNS records. Shortly it is a DNS manager with a twist, CDN. - Using Free DNS Manager provided by your server provider
Most trusted server hosting providers are also featured with free DNS server which you can manage your site’s DNS record. For instance, my Playground server that is hosted by Digital Ocean, I can simply use their DNS feature. I’m sure other providers like Linode, SliceHost, Heroku are also having similar feature. - Using your own DNS Server
This requires you to install a DNS server software like Bind9. I’ve posted a short guide how to setup Bind9 on Ubuntu. You have to adjust the steps if you are on other Linux distro. The catch, your domain will have its own ns1 and ns2.domain.com but downside is Bind9 itself will eat some portions of your server resources.
1. Using DNS Manager provided by Domain registrar
As each domain registrar service has its own UI so the steps you have to do are different. For that reason I only provide you with the link to knowledge base page of each registrar.
Q: How to use GoDaddy DNS Manager?
A: The full guide is here.
Q: How to use NameCheap DNS Management app?
A: The full guide is here and here.
Q: How to use Name.com DNS Manager?
A: The full guide is here.
2. Using FREE or Paid DNS Manager service
I mentioned some free DNS manager services above but if you look for some paid ones, simply googling with keywords: “paid dns hosting”, “premium dns hosting” or “reliable DNS hosting”. You should find services like ZoneEdit, Dyn.com, Zonomi, DNSMadeEasy, and so on.
In this guide I’ll show you how to use CloudFlare to manage your DNS records to resolve to your server.
Step 1 – Open CloudFlare.com, then login using your username and password. Do not have one? Go create a new account with them, it’s free.
Step 2 – Now add a new site. In this case you have to enter your domain name then click the “Add Website” button.
Step 3 – Wait few seconds for CloudFlare to scan current DNS of your domain.
Step 4 – Once done, simply hit the “Continue Setup” button:
Step 5 – In the next page is a section where you can configure your DNS records. Their system has found as many records as possible, but it is important for you to verify they are all listed there.
Step 6 – Edit main A records of your DNS. Right in the A record raw, click the settings icon then hit the “Edit Record” option.
Once clicked, you can then enter your server IP in the Value column.
Once done, click the green “Save” button.
p.s: If you want also CloudFlare to accelerate your traffic, simply turn the Cloud icon ON.
Step 7 – Next, do the same with CNAME record. But this time enter www in the name column then enter domain.com in the value column.
Step 8 – You can also add any other records there. CloudFlare supports various records including, A, CNAME, TXT, MX, TXT, SPF, AAAA, NS, SRV, and LOC.
Step 9 – Once done, hit that green “I’ve added all missing records, continue” button.
Step 10 – Next, select your plan, performance and security level. In this case choosing Free plan is enough. For the other two options you can choose as you need. Once done, hit the “Continue” button.
Step 11 – In the next page, you’ll be provided with nameservers you have to update your domain to. So go to your domain registrar and change your nameservers to what provided there.
Step 12 – Once you changed, go back to CloudFlare and hit the “I’ve updated my nameservers, continue” button.
That’s it. Now all you have to do is simply sit tight and wait for your domain to fully resolve to CloudFlare network
3. Using DNS Manager Provided By Your Server Hosting Company
This point is vary according in which company you rent your server from. However the steps can be also similar as the main points are: add / edit A, CNAME, and MX records. You can also add other records if you are really sure about what you are going to do.
If you are hosting your server at DigitalOcean.com, here’s how you can edit your DNS records.
Step 1 – Login to your domain registrar (e.g: GoDaddy) then change your domain’s nameserver to:
ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com
Step 2 – Now login to DigitalOcean control panel and click on the DNS menu in the left pane:
Step 3 – Click the “Add Domain” button.
Step 4 – In the next page, enter your domain name in the “Name” field, enter your server IP address in the “Ip address field”, select the droplet to point your domain to, and finally click the “Create Domain” button.
Step 5 – Click the “Add a new A record” button. Enter @ in the hostname field and your server IP in the next field. Once done, hit the “Update A record” botton.
Step 6 – Next, click the “Add a new CNAME record” button. Then edit as following:
Step 7 – That’s it. You can also add other DNS records like MX, TXT and SRV. MX record is the one that handles email. You can also add Google’s MX records to make use of GMail with custom domain.
That’s it.
4. Using your own DNS Server
Explained. The point is you have to install DNS Software on your server and configure everything in it. You can read more about all available DNS software here from Wikipedia.
Conclusion: There are several methods you can choose to make your domain resolve to your server.
Do not hesitate to drop a comment below. For quicker update, do not also forget to follow me on Twitter.
haha, at last.. i have found it.. i will try it .. thank you!!!
Yes you have to try it 😀
Trying to setup vps centos 6.3 — move my wordpress files —- running using IP —- OK, BIG thanx!!!
But … when i tried to setup domain name using CLOUDFLARE, well … its running… but i can not use the permalink (by post-name) setting anymore, always show “The page you are looking for cannot be found.”
What i have tried so far:
1. search at cloudflare support, etc … no result
2. try to googling, found tips, change site url and home at WP using “www.domain.tld” instead of “domain.tld” … still not working 🙁
3. check httpd.conf … already “AllowOverride all”
4. sleep and pray … still nothing happen 🙁
please help me, mom! 🙁
thank you for the info! this is exactly what i was looking for.
Thank you very much Server Mom, your tutorials are always very helpful!
Hello Mom,
Thanks for this wonderful tutorial. I am stuck in a problem. I have a VPS which gave me a dedicated IPv6 address and a shared IPv4 address. I have tunneled it and installed zpanel on my centos server. Now I can access zpanel from 31.220.48.155:22277 and I have also set up a new domain in zpanel. I have followed your above step to add 31.220.48.155:22277 in cloudflare A record but it wont allow saying “You entered ‘31.220.48.155:22277’ which is not a valid IP address.” I am stuck. Please Help…
you should enter only ip address without port number. Once done, you can then access zpanel via domain.tld:22277 (port from your example)
Hi
Thank you so much for your excellent tutorial,
your tutorials is really simple, understandable and useful.
Thank you thank you thank you. 🙂
Best regards,
Hossien Lotfi
1) I’m running Vesta on Ubunt 14.04 64. How can I set up a subdomains for my main domain. Created sub.mydomain.com as a separate domain howewer it redirects me to mydomain.com. Don’t know how to solve it.
2) Other issue is setting up a WP Multisite. Everything works accept new site as a subdomain don’t open up. I tried to type in aliases field add record *.multisite.com and get an error.
Any suggestions?
Hi! How to hide completely my IP behind clodflare? So I have a CentOS VPS with Zpanel and I want to make my IP absolutely non visible to Ip scanners to avoid DDoS attackers and so on. I just want the configuration needed to get my website Live without having a direct Ip reference from cloudflare so in the DNS configurations I need to setup the DNS in CloudFlare and again in the Zpanel DNS domain setup again twice? And how to do it which records are needed to get my website run without direct IP reference?….
Thank you!
No, if you are using third-party DNS server like Cloudflare, then the zPanel DNS server is not needed again and you can also safe some RAM by stopping DNS server in your VPS.
Hello, i have VPS at waveride.at and there are just only IP address. Domain is hostet @godaddy. I used on VPS VestaCP. And i dont know how to setup mail records at godaddy, because i cant recieve to Roundcube any mails 🙁
Make sure all the mail services are running on VestaCP (Dovecot, IMAP/POP, etc) then if you are using GoDaddy DNS Manager, make sure you entered appropriate entries / records.
Is there any person who can give me a virtual server?
I want to create a website
Thanks, you really helped me here 🙂
Hi, Mom!!!
Do i need to set more records??
Do i need Bind to use cloudflare???
You don’t need bind to use Cloudflare.
Hi mom,
thanks for the tutorial,
I use my own DNS server to manage dns. I use centos 6.x VPS and zpanel/sentora as Control Panel. I call this server as (serversiji.domainane.com) — just example
Before that, I register NS for my domain in my domain registrar control panel, let say my NS are siji.domainane.com and loro.domainane.com. both of them point to same IP. (is it right?)
but, I’ve host couple of domain in my server (included the domainane.com) and they run well. I create couple A record to be NS for hosting another domain. let say ns1.domainane.com and ns2.domainane.com, both of them point to my server IP.
After that I bought a new server that run centos 6.x and Kloxo-MR as control panel. I call this new server as serverloro.domainane.com. In first server i setup an A record for new server that point to new server’s IP. so now i can access the Kloxo-MR panel through that hostname.
I’ve setup the kloxo-mr like you told here http://servermom.wpengine.com/kloxo-mr-basic-configuration/1851/ and here http://servermom.wpengine.com/add-new-website-kloxo-mr/1876/,
I’ve create template DNS that pointing telu.domainane.com and papat.domainane.com to this new server IP.
after I try to host a new domain in this new server, I can’t make it run, the indicator always loading and tell me waiting for domainbaru.com… but the page show ERR_CONNECTION_RESET
Please mom, could you tell me where I’ve been wrong?
and could you teach us properly how to configure second server without buy a new domain for the new server?
thanks mom.
regard,
yoda
Sorry Yoda but your explanation still sounds confusing to me. Try ping to your domain name and make sure it gets the correct IP. If yes, then it’s not DNS related problem. Otherwise, double check your DNS setup.
I’ve try to ping my domain and it gets the correct IP, but I’ll check on it again
Hello!
Thank You For This Tutorial , i Set Up My domain Name for my vps , works perfectly!
and one question!
Can you please suggest me any tutorial how to set up name servers for centOS 7 , Debian 7 Or Ubuntu 14.04 !?
I’ve posted about installing BIND on Ubuntu, you can use the search bar in top left corner 🙂
Hello, i bought new domain and setup my new vps as per your previous tuorials. now when i add my domain in cloud flare on step 1 it returns error “Domain not valid error code 1049”. Struggling to fix this.
Also in my vps ns1 and ns2, do i need to add my vps machine IP or 127.0.0.1 in both ns1 and ns2.
I am stuck with server DNS setup. Please reply.
No, you don’t have to setup ns1 and ns2 for your own domain if you use thirdparty DNS server like cloudflare.
Great tutorial, just new to server administration.
I should try this.
Thanks mom 🙂