linode-cli
linode-cli copied to clipboard
Add ability to clear rDNS
To clear the rDNS for an IP in the web UI, you leave the domain name field blank. This is an illegal operation in the CLI:
$ linode-cli networking ip-update
usage: linode-cli [-h] [--rdns rdns] address
linode-cli: error: the following arguments are required: address
$ linode-cli networking ip-update 2600:3c03::1b:1000
Request failed: 400
┌errors─┬──────────────────┐
│ field │ reason │
├───────┼──────────────────┤
│ rdns │ rdns is required │
└───────┴──────────────────┘
$ linode-cli networking ip-update --rdns "" 2600:3c03::1b:1000
Request failed: 400
┌errors─┬─────────────────────────────────┐
│ field │ reason │
├───────┼─────────────────────────────────┤
│ rdns │ Length must be 1-255 characters │
└───────┴─────────────────────────────────┘