I have MIAB set up on an DO droplet. I’ve got a domain set up on it which I’ve only been using for email but I wanted to try using it to point to a server on my home network. I’ve set up a script that runs every 5 minutes, gets my external IP and runs curl to update the DNS for *,mydomain.com. If I run
dig +short ghfhgk.mydomain.com
or any other randon string I get back my IP so I know that’s working. So next I set up LinuxServer SWAG on my server. Amongst other settings I’ve set
- URL=mydomain.com
- VALIDATION=dns
- DNSPLUGIN=namecheap
- SUBDOMAINS=wildcard
The ‘namecheap’ setting is my current option for DNS validation because that’s my registrar. But it seems the Certbot integration in SWAG can only do verification against the DNS server.
So - I know this is more a question about SWAG than MIAB but I thought I’m more likely to find the answer amongst MIAB users especially since the only relevant post I could find in the LinuxServer forums just descends into an argument about wheter MIAB is “hosting your own DNS server” or not and doesn’t contain anything helpful.
The SWAG plugins do include an ACME DNS Validation plugin which contains the following configuration
dns_acmedns_api_url = http://your-acme-dns-server.example.com/
dns_acmedns_registration_file = /config/dns-conf/acmedns-registration.json
and acmedns-registration.json contains
{
"yourdomain.com": {
"username":"yourusername",
"password":"yourpassword",
"fulldomain":"<guid>.acme.yourdomain.com",
"subdomain":"<guid>",
"allowfrom":[]
}
}
But I haven’t been able to figure out if I can use that with MIAB.
All the obvious stuff - port forwarding to the server etc is done. This is definitely a problem with the way SWAG’s Certbot tries to do DNS validation. For most of the plugins the error is along the lines of “Domain not hosted here”. And I’m not saying the way is does the validation is broken - just that I can’t figure out how to configure it for my setup.
Any clues or pointers would be gratefully received.
Steve