Skip to content

k7hpn/dynamicdns-php-hacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dynamicdns-php-hacks

Quick hacks for updating dynamic DNS via PHP scripts.

Both scripts:

  • Obtain the IPv4 address from the HTTP environment variable REMOTE_ADDR so you don't need to know your own IPv4 address.
  • Only perform an update if the IP address has changed.

nsupdate.php

The first hack just performs a local nsupdate(1) using a BIND key stored locally. It also will update an IPv6 record but it expects that to be passed in via the query (e.g. nsupdate.php?v6=::1).

cfupdate.php

It's a lot easier to just use CloudFlare's free dynamic DNS service. This hack just performs an IPv4 update to CloudFlare so you don't need your own authoritative BIND server.

License

Code released under the MIT license.

About

Quick hacks for updating dynamic DNS via PHP scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages