Anyway, I’m wondering about the A records I set up on Digital Ocean. I have dynamic DNS and I’m using ddns.example_com as the name used in PFSense to update Digital Ocean’s pointer to my IP’s current address. All of the A records for my HAProxy subdomains point to the same IP address. I just typed them in.
In the interest of not being surprised when my provider renews the IP address, what will happen to the A records for my HAProxy subdomain names?
Should I be using cname records, and will I need to do something to prevent the fqdn from looking something like photo.ddns.example.com?
CNAMEs are usually the way to go. Keep the A record for ddns.example.com that gets updated dynamically and replace the subdomain entries with CNAMEs which point to ddns.example.com for photo.example.com, etc. Reverse proxies don’t care how the domains they serve are resolved.
NOTE: example_com is expressed this way to avoid complaints of links in the messages.
I took a working A record - meaning I had an A record with photo.example_com and it was working. The value of the IP was hard coded and matched the one that was automatically updated by pfsense as part of DDNS service.
I then deleted the A record and added a CNAME record and put in photo as the host and ddns.examle_com as the “is alias of” field. Saved it. I now see photo.example_com is an alias of photo.example_com. But it does not work.
I’m working on a comprehensive approach, as everyone is, of course, and I need a dynamic IP address to refresh my wan connection ip when my provider changes it.
I have an A record that I set up in digital ocean, but in experimenting I used a specific IP that I’ll use for one of my inbound haproxy connections (with acme certs, etc).
It seems the process might be that I’ll need an A record for every incoming domain I use for my haproxy sites? Yes? No?
I would like to have a dedicated connection for ddns - period. It does nothing but give me a single ddns connection for my main wan. If I have another WAN, then another dedicated ddns setup.
Then, as I see Tom doing in a video, he has a unique A record for each haproxied server. When I try to create an A record it want’s a specific IP which I could type in (same as my current ddns) ; but it’s not associated with my ddns. How does he associate an A record with ddns?
This is why I think I must need a unique DDNS record in pfsense, for every domain name A record that I want to configure with HAProxy… Very tedious.