Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. yum install ddclient
  2. vim /etc/ddclient.conf
  3.  
  4. ######################################################################
  5. 21 daemon=600 # check every 10 mins -> 600 seconds
  6. 22 syslog=yes # log update msgs to syslog
  7. 23 #mail=root # mail all msgs to root
  8. 24 mail-failure=root # mail failed update msgs to root
  9. 25 pid=/var/run/ddclient/ddclient.pid # record PID in file.
  10. 26 ssl=yes # use ssl-support. Works with ssl-library
  11.  
  12. 47 fw-login=admin, fw-password=theRouterAdminPassword # FW login and password
  13.  
  14. 58 #use=web, web=checkip.dyndns.org/, web-skip='IP Address' # this works
  15. 59 use=web, web=ip.changeip.com/, web-skip='IP Address' # but this uses the changeip resources so is more polite
  16.  
  17. 188 ## single host update
  18. 189 protocol=changeip, \
  19. 190 login=myChangeIPUserName, \
  20. 191 password=myChangeIPPassword \
  21. 192 #HereWouldBeTheDomainWeAreUsing.com # but it's commented out because we are applying the IP to the WHOLE of a set
  22. # that is to say we want to change mail, www and ftp etc all at the same time
  23. # Nominate the Set in the Chanegip website in your dns settings # for changeip this can be set1 or set2
  24. # there are 'tick' boxes on the right!
  25. 193 *1 # and leave this uncommented so that it applies the change to the whole of set 1
  26. 194 #*2 not used by me at this time
  27. 194
  28.  
  29. Test in a terminal with:
  30. ddclient -daemon=0 -debug -verbose -noquiet
  31.  
  32. vim /etc/sysconfig/ddclient
  33. remove or comment out
  34. # DDCLIENT_OPTIONS="-daemon 300"
  35.  
  36. revised systemd service file is as follows:
  37. vim /usr/lib/systemd/system/ddclient.service
  38. 1 [Unit]
  39. 2 Description=A Perl Client Used To Update Dynamic DNS
  40. 3 After=network.target
  41. 4
  42. 5 [Service]
  43. 6 User=ddclient
  44. 7 Group=ddclient
  45. 8 Type=forking
  46. 9 PIDFile=/var/run/ddclient/ddclient.pid
  47. 10 ExecStart=/usr/sbin/ddclient -file /etc/ddclient.conf
  48. 11
  49. 12 [Install]
  50. 13 WantedBy=multi-user.target
  51.  
  52. # the cache is installed incrrectly owned by root
  53. # correct to enable use by ddclient
  54. chown ddclient:ddclient /var/cache/ddclient/ddclient.cache
  55.  
  56. systemctl enable ddclient
  57. systemctl start ddclient
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement