Monviech / os-caddy-plugin

Caddy Plugin with GUI for OPNsense
Other
38 stars 0 forks source link

Include dynamic dns feature #77

Closed Monviech closed 8 months ago

Monviech commented 8 months ago

https://github.com/mholt/caddy-dynamicdns

It can use the configured dns-provider and api key to dynamically update the dns records.

That means, any user of Caddy in the Opnsense won't need ddclient, caddy will provide that functionality for all provided DNS Providers automatically.

dns-provider and api-token are already implemented due to the dns01 challenge option.

Example of the Global Options:

{
    dynamic_dns {
        provider cloudflare API_TOKEN
        domains {
            example.com @
            example.net @ sub1 sub2 sub3
        }
        ip_source simple_http https://icanhazip.com
        ip_source interface eth0
        check_interval 5m
        versions ipv4 ipv6
        ttl 1h
    }
}
mirchiseth commented 8 months ago

this looks like a great enhancement as well. Right now I use ddclient in opnsense but if this functionality is built in the plugin it would remove one plugin.

Monviech commented 8 months ago

@mirchiseth When you can, please test the new version and features and give feedback if it works.

mirchiseth commented 7 months ago

Thanks. I updated the plugin and it works. I was able to stop the Dynamic DNS service and just use your plug in.

Monviech commented 7 months ago

@mirchiseth Awesome :) thanks for the feedback.