ddns 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. config service "myddns"
  60. option enabled "0"
  61. option service_name "dyndns.org"
  62. option domain "mypersonaldomain.dyndns.org"
  63. option username "myusername"
  64. option password "mypassword"
  65. option ip_source "network"
  66. option ip_network "wan"
  67. option force_interval "72"
  68. option force_unit "hours"
  69. option check_interval "10"
  70. option check_unit "minutes"
  71. #option ip_source "interface"
  72. #option ip_interface "eth0.1"
  73. #option ip_source "web"
  74. #option ip_url "http://www.whatismyip.com/automation/n09230945.asp"
  75. #option update_url "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"