hyecheol123/Cloudflare-Public-Dynamic-IP-Update

[TEST] Rasberry Pi OS Lite (arm32)

Closed this issue · 1 comments

OS Name and Version

Raspberry Pi OS Lite (arm32)

Release date: May 7th 2021
Kernel version: 5.10
$ uname -srm
Linux 5.10.52-v7+ armv7l
$ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian

Test Result

1. Current IP is same as record's IP, must see the proper message indicating the identity

Yes. It shows my cloudflare domain and my current public IP address. Clouflare already has the right IP address.

# IP Address and Domain redacted
$ bash ./Cloudflare-Public-Dynamic-IP-Update/cloudflare_dynamic_ip_update.bash 
current public IP address is xxx.xxx.xxx.190
sub.domain.tld: no needs to update

2. Current IP is not same as record's IP, record's IP must be updated and see the proper message indicating the record has been updated

Yes. Here's how I did it:

First I changed my WAN IP address.

  1. Check my current IP with curl ip.me
  2. Turn off my internet modem
  3. Log into my DD-WRT router's web interface.
  4. Release my IP address on my WAN.
  5. Spoof my router's MAC address
  6. Turn on the modem
  7. Wait for a new WAN IP address.
  8. Double-check my IP address Changed with curl ip.me
    xxx.xxx.xxx.230

Then I ran the script again.

# IP Address and Domain redacted
$ bash ./Cloudflare-Public-Dynamic-IP-Update/cloudflare_dynamic_ip_update.bash
current public IP address is xxx.xxx.xxx.230
sub.domain.tld: successfully updated to xxx.xxx.xxx.230

3. Has no connection, and see the error message

Yes.

I unplugged my modem and then ran the script.

$ bash ./Cloudflare-Public-Dynamic-IP-Update/cloudflare_dynamic_ip_update.bash
Check your internet connection, or google DNS server maybe interruptted

Thanks for your effort. I will update README.md!!