Skip to content

Updating IPv6 prefix does not work #1154

@fiwswe

Description

@fiwswe

As reported in Problems updating IPv6 prefix trying to update an IPv6 prefix using the IP Update API results in a HTTP Status 500.

Reporting the issue here as directed so it can be tracked.

Details:

I was testing the new (PR #1112) mechanism to update mutilple hostnames and to use a prefix instead of a full IPv6 IP. My URL looks similar to this:

https://update.dedyn.io?hostname=<subdomain>.dedyn.io,<host2>.<subdomain>.dedyn.io,<host3>.<subdomain>.dedyn.io&myipv4=192.0.2.1&myipv6=2001:db8:1::/56

(<subdomain>, <host2>, <host3> have real values of course and they all have existing A and AAAA RRsets.)

However I am getting HTTP Status 500 and the following response instead of good:

<!doctype html>
<html lang="en">
<head>
  <title>Server Error (500)</title>
</head>
<body>
  <h1>Server Error (500)</h1><p></p>
</body>
</html>

More tests:

  • The same thing happens when using ipv6 instead of myipv6 as the parameter name. ipv6 is explicitly mentioned in the documentation to work with a prefix whereas myipv6 is not.
  • I tried 2001:db8:1::1/56 instead of 2001:db8:1::/56, i.e. including an Interface Identifier, as mentioned in the documentation. Same result.
  • When I use a complete IPv6 address instead of a prefix, the same call works fine.

I have looked at the code changes in #1112 and while I am not a Python expert, I think that none of the tests actually test updating an IPv6 prefix? Updating an IPv4 prefix is included in the tests though. So that probably works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions