Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Pointing A address directly to droplet from registrar
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?
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!
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.×