By secretsaiyan
Hello! On my domain name registrar, I already created ns1.example.com and ns2.example.com The IP Address of my droplet is 104.236.190.195 Both ns1.example.com and ns2.example.com are pointing to this IP Address.
What I want to do is to use my custom name servers with my VPS at DigitalOcean. How can I do this? I read various tutorials on A and CNAME records, but this has left me very confused. I’d appreciate the help :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi, first I would make a floating ip and assign it to your VPS. Then I would in the DO DNS set A-name to point to the floating IP.
Inside the webserver you also need to set up your domain. If you want www.domain.tld to work, you have to add a subdomain to both the DNS on DO with A-name pointing to the same floating ip and the same subdomain has to be pointed from your webserver.
You can think of domains like street adress, multiple people can reside on the same adress. The DNS is where people ask: “hey, where does yourdomain.tld live?” and then the DNS sees: ah, for your service you have to go to ip <…>. Then the serverver sees what’s requested and it maps the domain to the correct website.
Do you have nginx, apache, openlitespeed?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.