Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ################################################################################
  4. ## chmod +x no-ip-wizard.sh ##
  5. ## sudo ./no-ip-wizard.sh username password domain ##
  6. ################################################################################
  7.  
  8. username=$1
  9. password=$2
  10. domain=$3
  11.  
  12. apt install ddclient
  13.  
  14. cp /etc/ddclient.conf /etc/ddclient.conf.backup
  15.  
  16. rm -f /etc/ddclient.conf
  17.  
  18. echo "use=web, web=checkip.dyndns.com/,web-skip='IP Address'
  19. protocol=dyndns2
  20. server=dynupdate.no-ip.com
  21. login=$username
  22. password=$password
  23. $domain" > /etc/ddclient.conf
  24.  
  25. service ddclient restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement