Hello, this might not be specific to digitalocean, but is it possible for me to point to the droplet IP with an A address from my registrar, instead of going through digitalocean’s nameservers? This is strictly an educational question, I don’t actually need to point it directly from my registrar. But if not, what would be the thing preventing it and why?
Background info: I was just creating an nginx+node application, but when I put my domain (which again was pointing an A address from registrar to droplet), the app wouldn’t run on my browser. I tried double checking by pinging my domain, and then pasting the IP to my browser, which was successful. I was still skeptical about this, maybe it was just my nginx configuration… So I tried just using the default nginx configuration. Accessing it through my other domain (pointed through digitalocean nameserver) works, accessing through IP works, but with the domain directly A server from registrar, it didn’t work.
I’m wondering if there’s a name for whatever mechanism is doing this. Pretty much only for sake of learning more. I would guess the reason is so that people can’t just steal other people’s website by pointing their domain names to their IP? That would be my best guess anyway. But yeah, I’ve been searching for a while but couldn’t find anything about it (since I don’t even know what it’s called).
Thank you lots!
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!