b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Please read https://openwrt.org/docs/guide-user/base-system/ddns |
| 3 | # |
| 4 | config ddns "global" |
| 5 | option ddns_dateformat "%F %R" |
| 6 | # option ddns_rundir "/var/run/ddns" |
| 7 | # option ddns_logdir "/var/log/ddns" |
| 8 | option ddns_loglines "250" |
| 9 | option upd_privateip "0" |
| 10 | |
| 11 | |
| 12 | config service "myddns_ipv4" |
| 13 | option service_name "dyndns.org" |
| 14 | option lookup_host "yourhost.example.com" |
| 15 | option domain "yourhost.example.com" |
| 16 | option username "your_username" |
| 17 | option password "your_password" |
| 18 | option interface "wan" |
| 19 | option ip_source "network" |
| 20 | option ip_network "wan" |
| 21 | |
| 22 | config service "myddns_ipv6" |
| 23 | option update_url "http://[USERNAME]:[PASSWORD]@your.provider.net/nic/update?hostname=[DOMAIN]&myip=[IP]" |
| 24 | option lookup_host "yourhost.example.com" |
| 25 | option domain "yourhost.example.com" |
| 26 | option username "your_username" |
| 27 | option password "your_password" |
| 28 | option use_ipv6 "1" |
| 29 | option interface "wan6" |
| 30 | option ip_source "network" |
| 31 | option ip_network "wan6" |
| 32 | |