source: packages/net/ddns-scripts/files/etc/config/ddns @ 27657

Last change on this file since 27657 was 27657, checked in by jow, 5 years ago

[packages] ddns-scripts: add an option to specify the used interface - default to wan to retain compatibility (#7570)

File size: 3.7 KB
Line 
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# If "ip_source" is "script" you specify a script to obtain ip address.
35# The "ip_script" option should contain path to your script.
36#
37# The last possibility is that "ip_source" is "web", which means
38# that in order to obtain our ip address we will connect to a
39# website, and the first valid ip address listed on that page
40# will be assumed to be ours.  If you are behind another firewall
41# this is the best option since none of the local networks or
42# interfaces will have the external ip.  The website to connect
43# to is specified by the "ip_url" option.  You may specify multiple
44# urls in the option, separated by whitespace.
45#
46# Finally we need to specify how often to check whether we need
47# to check whether the ip address has changed (and if so update
48# it) and how often we need to force an update ( many services
49# will expire your domain if you don't connect and do an update
50# every so often).  Use the "check_interval" to specify how
51# often to check whether an update is necessary, and the
52# "force_interval" option to specify how often to force an
53# update.  Specify the units for these values with the "check_unit"
54# and the "force_unit" options.  Units can be "days", "hours",
55# "minutes" or "seconds".  The default force_unit is hours and the
56# default check_unit is seconds.  The default check_interval is
57# 600 seconds, or ten minutes.  The default force_interval is
58# 72 hours or 3 days.
59#
60#
61#########################################################
62
63config service "myddns"
64        option enabled          "0"
65        option interface        "wan"
66
67        option service_name     "dyndns.org"
68        option domain           "mypersonaldomain.dyndns.org"
69        option username         "myusername"
70        option password         "mypassword"
71
72        option ip_source        "network"
73        option ip_network       "wan"
74       
75
76        option force_interval   "72"
77        option force_unit       "hours"
78        option check_interval   "10"
79        option check_unit       "minutes"
80
81        #option ip_source       "interface"
82        #option ip_interface    "eth0.1"
83
84        #option ip_source       "script"
85        #option ip_script       "path to your scrip"
86
87        #option ip_source       "web"
88        #option ip_url          "http://www.whatismyip.com/automation/n09230945.asp"
89
90        #option update_url      "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"
91
92
Note: See TracBrowser for help on using the repository browser.