I have installed CentOS Web Panel on my digital ocean droplet. I can access web panel using IP, and I have my domain example.com on name cheap.
I wanted to:
Access web panel using srv.example.com
And want to create ns1.example.com & ns2.example.com, so I can point sites on those records, which needs to be hosted on that server.
What I’m confused at:
How should I point my site example.com to server? (By using
A record
or how)Should I point srv.example.com by adding
A record
on name cheap and createNS records
there, and then point domain to those records?
What I’ve tried:
I tried to point example.com to server IP, and I was able to access web panel using domain, but it was accessible on main domain, and I tried to add hostname
record as srv.example.com
and it doesn’t work. Also, the ns
records weren’t working.
Try these steps:
create name records (ns1, and ns2) and point to your servers ip, (last option in Advanced DNS tab on namecheap)
Follow this guide to setup those records on server.
Now add your primary domain as User Account on server
Point primary domain to newly created records (ns1 and ns2)
Now you can add
dns
record to pointserver.example.com
to your servers ip.That's it!
PS: usually it don't take too much time to populate dns changes, but it can take upto 48 hours so please be patient and wait for results.