Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ################################################################################
- ## chmod +x no-ip-wizard.sh ##
- ## sudo ./no-ip-wizard.sh username password domain ##
- ################################################################################
- username=$1
- password=$2
- domain=$3
- apt install ddclient
- cp /etc/ddclient.conf /etc/ddclient.conf.backup
- rm -f /etc/ddclient.conf
- echo "use=web, web=checkip.dyndns.com/,web-skip='IP Address'
- protocol=dyndns2
- server=dynupdate.no-ip.com
- login=$username
- password=$password
- $domain" > /etc/ddclient.conf
- service ddclient restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement