Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Dynamic DNS - Domains
« previous
next »
Print
Pages: [
1
]
Author
Topic: Dynamic DNS - Domains (Read 1668 times)
spetrillo
Hero Member
Posts: 721
Karma: 8
Dynamic DNS - Domains
«
on:
May 25, 2022, 08:24:49 pm »
Hello all,
I am playing with DDNS as a way to automatically update the IP of my home Internet connection. I understand the concept but where it gets confusing is at the root domain level. In Cloudflare I have two A record entries, one for the domain and one for a host name, both pointing back to the same IP. How can I use DDNS to update both entries? I can get it to update the host automatically but it does not seem to allow me to it for the domain itself.
Thoughts? Can I do this or would the domain update have to be manual?
Thanks,
Steve
Logged
nigelw
Newbie
Posts: 17
Karma: 0
Re: Dynamic DNS - Domains
«
Reply #1 on:
July 05, 2022, 01:00:49 am »
Hi Steve,
Not sure if this is a technical issue with updating a specific record with Cloudfare or if it's an issue of updating multiple records in general. I have no experience with Cloudfare. So if it's the former, you might need to provide some more detail around what's happening.
If it's just about updating multiple records, then your situation sounds similar to mine. I'm using dynamic DNS with Namecheap, though. I have a record for my base domain and two other sub-domains. I have configured the Dynamic DNS (legacy) service with three separate entries. All entries are the same (Namecheap service type, username, password, etc) except for the hostname. IP address changes trigger all three of the entries and update all three records at Namecheap individually.
Does that help at all?
Nigel
Logged
Vilhonator
Full Member
Posts: 245
Karma: 13
Re: Dynamic DNS - Domains
«
Reply #2 on:
July 05, 2022, 09:12:22 am »
If you mean by 2 A records as in
1 with mydomain.com and 1 with host.mydomain.com then you need to add both to DDNS.
DNS records are case sensitive, each A record you want to update automatically needs to be added to DDNS clients list.
This is because on public DNS records, each A record binds domains and subdomains to specific public IPs, so if you add only mydomain.com, then it will update only A record which is mydomain.com and binds that to your opnsenses public IP.
When all hosts are using same public IP, you can just bind root domain to DDNS, and use wildcard certificates for main domain and all of it's subdomains.
If you are using Let's Encrypt for certificate signing, you can add subdomains in Service ---> Acme ---> Certificates ---> Certificates. Choose edit certificate or create new one and type "mydomain.com" on "common name" and "host.mydomain.com" on "alt names" (see the picture)
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Dynamic DNS - Domains