diff --git a/README.md b/README.md index 54f8bb2..681f9f1 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Note: This is no official software project by INWX, it just kindly uses their pu - [Debug and dry-run](#debug-and-dry-run) - [I deleted all my productive records!](#i-deleted-all-my-productive-records) - [Simulate API response](#simulate-api-response) + - [URL records](#url-records) - [License](#license) @@ -216,6 +217,11 @@ This could look like the following: In order to get this output from an existing domain, you can run the program with the `--debug` flag and search for the line starting with `Response (nameserver.info):`. +### URL Records + +INWX has [URL records](https://kb.inwx.com/en-us/3-nameserver/106-how-can-i-forward-a-domain-to-an-internet-address) that allow for redirections of a domain to another domain. These records are somewhat supported by this tool, but there are [several issues and bugs](https://github.com/mxmehl/inwx-dns-recordmaster/pull/23). It's recommended to add and edit these records in the web interface and not via this tool as the INWX API doesn't seem to be reliable, but you can still store these configurations locally. + + ## License The main license of this project is the GNU General Public License 3.0, no later version (`GPL-3.0-only`), Copyright Max Mehl. diff --git a/recordmaster/_api.py b/recordmaster/_api.py index 153aa1c..7eee74d 100644 --- a/recordmaster/_api.py +++ b/recordmaster/_api.py @@ -86,6 +86,7 @@ def inwx_api( logging.info("API call for '%s' has not been executed in dry-run mode", method) return {} + # Convert boolean values to 0/1 as this is what the INWX seems to expect for key, value in params.items(): if isinstance(value, bool): params[key] = 1 if value else 0