Skip to content

Commit

Permalink
add documentation for URL records
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmehl committed Mar 18, 2024
1 parent c15fb87 commit b2bdc7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions recordmaster/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2bdc7c

Please sign in to comment.