See Google DNS help article for other responses. sudo rm -f /var/cache/ddclient/ddclient.cache Further Reference This script is an alternative for dyndns and noip tools, with no dependencies, just a bash script that is less than 20 lines. So you need to delete its cache and then run the update sequence as below. DigitalOcean dynamic DNS update script in bash (noip/dyndns alternative) Visit site A bash script that retrieves your public IP address and updates a domain record (like a subdomain) using DigitalOcean API v2. Test double-check, you can point your DNS to a fake IP address by going to the following URL with your details: you run the ddclient daemon again, it will compare its IP address with the address it cached (not with the one we changed using the GET request above) therefore will think its IP hasn’t changed. If you see a line towards the end of the output showing Google responded with good and your IP address, it is working. The following runs the update sequence: sudo ddclient -daemon=0 -debug -verbose -noquiet If you want to update multiple DNS records, just repeat these steps and append the configuration in the nf file. It should look similar to this, but with your DNS credentials we obtained earlier and the domain would be depending on what you set up on the dynamic DNS section. Install it (you can skip the questions during installation by hitting Enter): apt install ddclientĮdit the configuration with: sudo nano /etc/nf Finally click View dynamic DNS credentials then View and note the credentials. Click Show Advanced Settings at the bottom of the page, then Manage dynamic DNS and create a new record as you would do with other records. Login to Google Domains, select the domain you want to point to this server and open DNS records by clicking DNS. Obtain DNS Credentials from Google Domains That would be eth0 for the case below as this device was connected via ethernet. Look for the following lines that begin with *-network in the output and note the logical name of the network interface you are using. We will need to know the name of the network interface that ddclient will use, so run the following command: sudo lshw Google Domains offers this service for free and without any strings attached like NoIP’s confirmation requirement every 30 days. If you are running a web server, VPN, or any other device at home which you want to access over the internet using a domain or subdomain name, you either need a static IP address (which many ISPs do not provide or charge extra for) or you will need a Dynamic DNS setup that changes your DNS records every time your IP address changes.
0 Comments
Leave a Reply. |