|
38 | 38 | version = 6 |
39 | 39 | method = "interface" |
40 | 40 |
|
41 | | - # For the "interface" service, the available configuration options are: |
| 41 | + # For the "interface" method, the available configuration options are: |
42 | 42 | # - iface: the IP address of this interface will be used. |
43 | 43 | # - matches: only use this IP address if it matches the netmask. |
44 | 44 | # Defaults to "::/0" or "0/0". |
45 | | - # Note that non-CIDR notation can also be used: "::/::ffff" |
46 | | - # matches all IPv6 addresses ending with 0000. |
| 45 | + # Note that non-CIDR notation can also be used: "::abcd/::ffff" |
| 46 | + # matches all IPv6 addresses ending with "abcd". |
47 | 47 | iface = "wlan0" |
48 | 48 | matches = "2000::/3" |
49 | 49 |
|
50 | 50 | [ip.name2] |
51 | 51 | version = 4 |
52 | 52 | method = "exec" |
53 | 53 |
|
54 | | - # For the "exec" service, the available configuration options are: |
| 54 | + # For the "exec" method, the available configuration options are: |
55 | 55 | # - command: the command which will be executed. The stdout is expected |
56 | | - # to be an IP address. |
| 56 | + # to be an IP address. Normally `/bin/bash` is used, see |
| 57 | + # "shell" in the [general] section. |
57 | 58 | command = "natpmpc | grep 'Public IP' | cut -d ' ' -f5" |
58 | 59 |
|
59 | 60 | [ip.name3] |
60 | 61 | version = 6 |
61 | 62 | method = "http" |
62 | 63 |
|
63 | | - # For the "http" service, the available configuration options are: |
| 64 | + # For the "http" method, the available configuration options are: |
64 | 65 | # - url: connect to this URL and send a HTTP GET request to obtain the |
65 | 66 | # external IP address. |
66 | 67 | # - regex: run this regular expression on the HTTP response, the first |
67 | 68 | # capture group will be the IP address. |
68 | 69 | # (NOTE: only available when compiled with the feature "regex") |
| 70 | + # |
| 71 | + # If you are using this method, make sure your update rate is long enough |
| 72 | + # so that you are not banned by the HTTP service you are using (10 to |
| 73 | + # 30 minutes is recommended). |
69 | 74 | url = "https://api6.ipify.org/" |
70 | 75 | regex = "(.*)" |
71 | 76 |
|
|
84 | 89 | # IP addresses are allowed in those two options, if the first IP address is |
85 | 90 | # unusable (an error flag is set) then the next one will be attempted. |
86 | 91 | # |
| 92 | +# In the case of dual-stacking (IPv4+IPv6), the first usable IPv4 address and |
| 93 | +# the first usable IPv6 address will be used to update the record. |
| 94 | +# |
87 | 95 | # NOTE that some services require you to pre-create DNS records on their own |
88 | 96 | # website, notably Porkbun (the edit operation will succeed, but no actual |
89 | 97 | # changes are made). Best to create your A and/or AAAA records before starting |
90 | 98 | # the daemon. |
91 | 99 | # |
92 | | -# The configuration options will be provided below. |
93 | | -# |
| 100 | +# The configuration options are: |
| 101 | +# - service: the DDNS provider to use. |
| 102 | +# - ip: a list of IPs which are possibly used to update the domains. |
| 103 | +# - domains: a list of domains that is updated using the set of IPs in `ip`. |
| 104 | +# |
| 105 | +# The other options are provider-dependent, see below. |
| 106 | +# |
94 | 107 | [ddns."cloudflare-example"] |
95 | 108 | service = "cloudflare-v4" |
96 | 109 | ip = ["name1", "name2", "name3"] |
|
142 | 155 | domains = "example.com" |
143 | 156 |
|
144 | 157 | [ddns."porkbun-example"] |
145 | | - service = "porkbun" |
| 158 | + service = "porkbun-v3" |
146 | 159 | ip = ["name1", "name2"] |
| 160 | + |
| 161 | + # Remember to enable API access on your domain. |
147 | 162 | secret_api_key = "sk1_key" |
148 | 163 | api_key = "pk1_key" |
149 | 164 | domains = ["example.com"] |
|
158 | 173 | [ddns."hello, this is a dummy!"] |
159 | 174 | service = "dummy" |
160 | 175 | ip = ["name1", "name2"] |
| 176 | + |
| 177 | + # This service is for debugging uses. Use it if you want to confirm that |
| 178 | + # the proper IP addresses are being used to update your domains. |
161 | 179 | domains = "example.dummy" |
0 commit comments