| .gitignore | ||
| pubip.py | ||
| README.md | ||
pubIp
Simple dynamic DNS resolver which works with Tomato and requires Python 3.
Setup in Tomato
- In the left menu under
Basic -> DDNSset "auto-refresh every" to e.g. 1 days. - In the
Servicedropdown choose:Custom URL. - Add URL to where you have this service running:
http://YOUR_SERVER.TLD/update/YOUR_KEY/@IP. - Check
Force next update. - Hit
Save. - Verify
Last IP AddressandLast Result - Point your browser to
http://YOUR_SERVER.TLD/show/YOUR_KEYto see whatYOUR_KEYis bound to. - Or check if redirects works as intended with
http://YOUR_SERVER.TLD/go/YOUR_KEY/PORT.
API
/show/:user:
Shows the current IP that is set for key :user.
/update/:user/:ip:
Updates the current IP.
:ip must match the request client address.
/go/:user/:port:
This redirects you to whatever IP that :user is set to along with :port.
Limitations
All state is in-memory. If service restarts, there will be a delay* before Tomato updates the IP.
- Whatever amount you set auto-refresh to.