Response: IP address (plain text)
Request method: GET
1. hostname [mandatory, even when empty]
- hostname of 4th level without domain (hostname.username.dyn.rs)
- empty or "-" for default host (username.dyn.rs)
If there's no hostname parameter in the GET request, the following error will be returned: ERROR: BAD REQUEST
2. myip (IP address) [optional parameter]
Possible values: IPv4 address
If the parameter doesn't exist in the GET request, DNS record update will be made with an IP address from which the request has arrived.
Update is performed on DNS A records, TTL is fixed to 60 seconds.
There are 3 levels of response, defined by the first word:
1: SUCCESS: - Update successful
2: INFO: - Less important error, for example when trying to make an update with the same IP as last time.
3: ERROR: - An error that should probably be shown or mailed to the user, for instance on failed authorization, suspended account, etc..