dynamic_dns_api 2015/01/29 20:04 |
dynamic_dns_api 2015/01/30 00:33 current |
- | ====== Dynamic DNS API ====== | + | ==== Dynamic DNS API ==== |
| | | |
| You can update your A or AAAA records with a simple HTTP GET request. | | You can update your A or AAAA records with a simple HTTP GET request. |
| | | |
- | Basic example: http://api.geoscaling.com/dns2/dynamic/?host=dynamic.nyuu.org | + | Basic example: |
| + | http://api.geoscaling.com/dns2/dynamic/?host=dynamic.nyuu.org |
| | | |
| This updates the dynamic.nyuu.org subdomain with your auto-detected remote ip. | | This updates the dynamic.nyuu.org subdomain with your auto-detected remote ip. |
| Example of Linux commands that would update your IP address: | | Example of Linux commands that would update your IP address: |
| | | |
- | lynx -source -auth=USERNAME:PASSWORD 'http://api.geoscaling.com/dns2/dynamic/?host=dynamic.nyuu.org' | + | <code> |
- | wget -O - --http-user=USERNAME --http-passwd=PASSWORD 'http://api.geoscaling.com/dns2/dynamic/?host=dynamic.nyuu.org' | + | lynx -source -auth=USERNAME:PASSWORD 'http://api.geoscaling.com/dns2/dynamic/?host=dynamic.nyuu.org' |
- | curl -u $USERNAME:$PASSWORD "http://api.geoscaling.com/dns2/dynamic/?host=ynamic.nyuu.org&content=$IP_ADDRESS" | + | wget -O - --http-user=USERNAME --http-passwd=PASSWORD 'http://api.geoscaling.com/dns2/dynamic/?host=dynamic.nyuu.org' |
| + | curl -u $USERNAME:$PASSWORD "http://api.geoscaling.com/dns2/dynamic/?host=ynamic.nyuu.org&content=$IP_ADDRESS" |
| + | </code> |
| | | |
| where dynamic.nyuu.org is your own subdomain. | | where dynamic.nyuu.org is your own subdomain. |
| | | |
| Other optional GET variables: | | Other optional GET variables: |
- | | + | * **type** - default is A, can be set to A or AAAA |
- | type - default is A, can be set to A or AAAA | + | * **content** - default is your remote address, can be set to an IPv4 or IPv6 ip address, depending on the selected type |
- | content - default is your remote address, can be set to an IPv4 or IPv6 ip address, depending on the selected type | + | |
| | | |