As I am by no means a server expert, so I wanted to learn the basics by starting my own small VPS on Digital Ocean and host some simple websites to try things out.
In the tutorials of DO it says that to link domains to my VPS I have to change the default NS records of my domain to the nameservers of Digital Ocean.
Now that is something I can't grasp....
Because I learned that A records point domains to servers (or my VPS in this case). So I don't understand how changing the NS records will point my domain name to another server without having to chance the A record to that server?
Shoot me if I'm wrong, but the only logical explanation that I could come up with is that there are also DNS records set up on the Digital Ocean nameservers that handle all DNS related business to my domain (like A and MX records) and that changing the NS records of my domain to the Digital Ocean name servers would tell the DNS system that it shouldn't use the DNS records that are stated here but to use the ones my NS record points to, so to use the records on the Digital Ocean nameservers.
So to me, it more or less seems to me that changing the NS records to other nameservers actually is some sort of "DNS redirect" to say that these records shouldn't be used, but use the ones on the nameservers that my NS records point to.
Maybe I'm wrong on this thinking, but I could nowhere find a DNS guide that actually explains how things work, how to use DNS and what one can do with it... Only ones that say what everything is.
Thanks in advance for helping me out!
Luuk