Skip to content

Dynamic DNS (DDNS) service based on MongoDB, specifically for those using Indih*ome ISP πŸ’€. It is written in Bash and can automatically change the access list in MongoDB.

Notifications You must be signed in to change notification settings

z3rsa/mongodb-ddns-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MongoDB Dynamic DNS IP Updater

This script is used to update the Dynamic DNS (DDNS) service based on MongoDB, specifically for those using Indih*ome ISP πŸ’€. It is written in Bash and can automatically change the access list in MongoDB.

Installation

git clone https://github.com/z3rsa/mongodb-ddns-updater.git

Usage

This script is used with crontab. Specify the frequency of execution through crontab.

# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ minute/menit (0 - 59) 
# β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ hour/jam (0 - 23)
# β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ day/hari of the month (1 - 31)
# β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ month/bulan (1 - 12)
# β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ day/hari of the week (0 - 6) (Sunday to Saturday 7 is also Sunday on some systems)
# β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ command to issue                                
# β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
# β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
# * * * * * /bin/bash {Location of the script}

Special Case

If you're using Raspberry Pi, make sure to add a delay before running the script:

@reboot sleep 180 && bash /path/to/your/script

Discord Embed

Success Add IP Address on Access List
MongoDB success image

Fail to add, Already IP Address on Access List
MongoDB fail image

Reference

This script was made with reference from K0p1-Git | Cloudflare Dynamic DNS IP Updater Github.

About

Dynamic DNS (DDNS) service based on MongoDB, specifically for those using Indih*ome ISP πŸ’€. It is written in Bash and can automatically change the access list in MongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages