-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
ddns with cloudflare #463
Comments
cloudflare has a peculiar api |
do you know your "zone_id" and "dns_record_id" ? |
i expect the plugin to be something like this exports.apiRequired = 8.83 // publicIpsChanged
exports.config = {
zone_id: {},
dns_record_id: {},
}
exports.init = api => {
const { httpWithBody } = api.require('./misc')
const cfg = api.getConfig
return {
unload: api.events.on('publicIpsChanged', par =>
httpWithBody(`https://api.cloudflare.com/client/v4/zones/${cfg('zone_id')}/dns_records/${cfg('dns_record_id')}`, {
method: 'PUT',
body: { content: par.IP4, name: domain, type: 'A' },
}) )
}
} |
those you cobfigure when making api key |
it shows u them |
Can't this be done by using cloudflare with other ddns, such as duckdns? |
technically, but not the same thing |
**Is your feature request related to a problem? Please describe.**when ip changes i have to manually update domain
Describe the solution you'd like
A clear and concise description of what you want to happen.
hfs to automatically update my domain and subdomains to new ip when it changes
The text was updated successfully, but these errors were encountered: