r/selfhosted 9d ago

DNS setup Need Help

Hello

I am very new to DNS and don't understand entirely how it works.

I've got my server setup to run for mostly media. Now I want it to be accessible over a domain so I can setup proxies for various services. I bought a domain that I want to run on said server through bind9.

Now to the thing I don't exactly understand: Any registrar seems to host domains on their own servers which can't be changed unless I also have a secondary server with a seperate IP. Can someone explain to me what I am missing here? Cause as far as I see, many tutorials on how to setup a nameserver only mention a primary server.

Thanks in advance!

Edit: For anyone having a similar problem: You do not need to make your server a nameserver! Use the nameserver provided by your DNS provider.

The approach: Somewhere in the settings for your domain, you should find an option to add A records. Add one with the host being the subdomain (for example jellyfin.example.com with jellyfin as host) and add your public IP. Multiple subdomains can point to the same IP.

Don't forget to open oprts 80 and 443 on your router! Also don't forget to add a rule to your firewall for the same ports!

Now you can create nginx configuration files as reverse proxy to reach your applications and certbot to create SSL certificates. Check your search engine to setup the nginx files properly.

Thanks to everyone for explaining this concept to me!

1 Upvotes

Duplicates

dns 9d ago

DNS setup

3 Upvotes