7c3f3c1a7ccf957652251a7dcaa3eb81ef6d5927
[project/luci.git] / contrib / uci / hostfiles / etc / config / ddns
1 #################################################################
2 # In order to enable dynamic dns you need at least one section,
3 # and in that seciton the "enabled" option must be set to one
4
5 # Each section represents an update to a different service
6 #
7 # You specify your domain name, your username and your password
8 # with the optins "domain", "username" and "password" respectively
9 #
10 # Next you need to specify the name of the service you are 
11 # connecting to "eg. dyndns.org".  The format of the update
12 # urls for several different dynamic dns services is specified
13 # in the /usr/lib/ddns/services file.  This list is hardly complete
14 # as there are many, many different dynamic dns services.  If your
15 # service is on the list you can merely specify it with the 
16 # "service_name" option.  Otherwise you will need to determine
17 # the format of the url to update with.  You can either add an
18 # entry to the /usr/lib/ddns/services file or specify this with
19 # the "update_url" option.
20 #
21 # We also need to specify the source of the ip address to associate with
22 # your domain.  The "ip_source" option can be "network", "interface"
23 # or "web", with "network" as the default.  
24 #
25 # If "ip_source" is "network" you specify a network section in your 
26 # /etc/network config file (e.g. "wan", which is the default) with
27 # the "ip_network" option.  If you specify "wan", you will update
28 # with whatever the ip for your wan is.
29
30 # If "ip_source" is "interface" you specify a hardware interface 
31 # (e.g. "eth1") and whatever the current ip of this interface is
32 # will be associated with the domain when an update is performed.
33 #
34 # The last possibility is that "ip_source" is "web", which means
35 # that in order to obtain our ip address we will connect to a 
36 # website, and the first valid ip address listed on that page
37 # will be assumed to be ours.  If you are behind another firewall
38 # this is the best option since none of the local networks or 
39 # interfaces will have the external ip.  The website to connect
40 # to is specified by the "ip_url" option.  You may specify multiple
41 # urls in the option, separated by whitespace.
42 #
43 # Finally we need to specify how often to check whether we need
44 # to check whether the ip address has changed (and if so update
45 # it) and how often we need to force an update ( many services
46 # will expire your domain if you don't connect and do an update
47 # every so often).  Use the "check_interval" to specify how
48 # often to check whether an update is necessary, and the 
49 # "force_interval" option to specify how often to force an
50 # update.  Specify the units for these values with the "check_unit"
51 # and the "force_unit" options.  Units can be "days", "hours",
52 # "minutes" or "seconds".  The default force_unit is hours and the
53 # default check_unit is seconds.  The default check_interval is
54 # 600 seconds, or ten minutes.  The default force_interval is 
55 # 72 hours or 3 days.
56 #
57 #
58 #########################################################
59
60 config service "myddns"
61         option enabled          "0"
62
63         option service_name     "dyndns.org"
64         option domain           "mypersonaldomain.dyndns.org"
65         option username         "myusername"
66         option password         "mypassword"
67
68         option ip_source        "network" 
69         option ip_network       "wan"
70         
71
72         option force_interval   "72"
73         option force_unit       "hours"
74         option check_interval   "10"
75         option check_unit       "minutes"
76
77         #option ip_source       "interface"
78         #option ip_interface    "eth0.1"
79
80         #option ip_source       "web"
81         #option ip_url          "http://www.whatismyip.com/automation/n09230945.asp"
82
83         #option update_url      "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"
84
85