Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example configuration for DDNS on root level domain and not dedicated subdomain. #52

Open
tylerdmace opened this issue Aug 9, 2024 · 2 comments

Comments

@tylerdmace
Copy link

tylerdmace commented Aug 9, 2024

Hello!

The only configurations I've been able to get working with this software is using a dedicated subdomain for serving dynamic records (eg, host.d.example.com as detailed in documentation) but what I'd really like to do is allow subdomains to be created right off the root domain (eg, host.example.com) without the need to subdomain off of d.example.com. Is this possible and if so, can anyone share with me exactly what this configuration would look like?

@MestreLion
Copy link

MestreLion commented Nov 7, 2024

Possibly not, and most likely you wouldn't want that anyway.

If you don't use a subdomain, it means you would be setting the NS records of your root domain to point to this host, effectively making the built-in PowerDNS container your domain DNS! You would have to setup up all your DNS records there, including MX, CNAMES, A/AAA, TXT, etc. Your current DNS (most likely from your Registar) would stop working.

I'm not sure how functional the built-in PowerDNS is as a fully-fledged general DNS server. It wasn't designed for that, so most likely was not configured for that use-case. It possibly has no Web UI and no API, at least none that is exposed to the built-in Caddy HTTP server.

And even if you manage to make it work, there's the issue of availability and security: are you willing to self-host your domain's entire DNS?

@MestreLion
Copy link

That said, this is the workaround I use:

  • Let DDNS do its job and create the entries on hostname.d.yourdomain.com
  • Manually create a hostname CNAME record in your DNS pointing to hostname.d.yourdomain.com
    This is a one-time setup, for long-living hostnames you manually pick to expose to your root domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants