Key relay: keeping the DNSSEC chain intact during transfers

At long last, we are nearly there. Key relay, an internet standard developed by SIDN, will soon be published as an RFC by the Internet Engineering Task Force (IETF). As one of the standard's authors, I shall take great satisfaction from seeing that milestone reached. However, publication of the new standard is far from the end of the story. The next challenge is to get the standard adopted by the market.

What is the new internet standard?

One of the challenges associated with DNSSEC arises when a domain name's registrant decides to change DNS operators. Ideally, DNSSEC validation should remain possible throughout the transfer. A transfer that allows that is referred to as a 'secure transfer'.

A secure transfer depends the DNS operators being able to securely exchange DNSSEC keys (see [1]). SIDN has accordingly developed an internet standard that defines a secure key exchange mechanism based on the EPP protocol. [2].

Key relay.en

In this blog post, I explain how to perform a secure domain name transfer using EPP and the new internet standard. The emphasis is on how the procedure should be implemented in EPP.Where the .nl zone is concerned, most DNS operators are also registrars. Consequently, the key relay standard is an ideal basis for exchanging DNSSEC keys, because all registrars have a relationship with the registry and access to a familiar, secure EPP channel for the communication of key material.The standard is currently in the final phase of adoption by the IETF. We expect it to be published as an RFC in two to three months.

Transfers within the .nl zone

The key relay standard defines a procedure that allows the registrant of a secure domain name to change registrars without interrupting the name's security. A study of our registration system reveals various scenarios in which DNSSEC security is interrupted, resulting in an insecure transfer. A few examples:

  • When a domain name is transferred, the new registrar immediately deletes the key material and links new DNSSEC keys to the domain name.

  • When a domain name is transferred, the new registrar leaves the existing DNSSEC keys linked to the domain name.

  • Immediately after issuing the transfer token for a domain name, the releasing registrar deletes all the DNSSEC keys linked to the name.

In practice, numerous scenarios arise, in addition to the three outlined above. Following a transfer, some registrars execute a series of separate EPP transactions to link the appropriate data to the domain name.Under any of the scenarios, there will be a period during which either the DNSSEC chain is incomplete, or validating resolvers are unable to resolve the domain name because the DNSSEC chain is invalid.

Secure transfer: what happens at EPP level?

The secure transfer process has been described at the DNS level in other publications (see [3] and [4]). A number of 'time to live' values (TTLs) have an important function in the process. The DNS level is not considered further in this blog.A secure transfer involves a number of EPP transactions performed sequentially.

Step 1: The receiving registrar starts the transfer process

The transfer process starts when a registrant asks a registrar to transfer a domain name and provides the transfer token. First, new DNSSEC material is generated and added to the new zone. Then the registrar sends the registry a key relay message specifying the domain name, the token and the new DNSSEC keys.A specimen EPP key relay message:

   C:   C:   C:     C:       C:         C:        example.nl   C:           C:          JnVdBAZxSxZj   C:           C:           C:             C:            256   C:            3   C:            8   C:            cmlraXN0aGViZXN0   C:             C:             C:            P1M13D   C:             C:           C:         C:       C:    ABC-12345   C:     C:

Step 2: The registry forwards the new DNSSEC material

The registry checks the token in the incoming key relay request and, if it is correct, places the message in the existing registrar's poll queue. At this stage, no changes are made to the registration. The registry merely acts as an intermediary, enabling the new DNSSEC keys to be passed from one registrar to the other.The key relay standard is designed so that a registrar needs to know only the domain name and the token in order to send a relay request to the registry. The registrar initiating the transfer of a secure domain name does not therefore have to establish who the existing registrar is, and the registry already knows. The outcome is a message in the existing registrar's EPP poll queue, as follows:

   S:   S:   S:     S:       S:      Command completed successfully; ack to dequeue   S:       S:       S:      1999-04-04T22:01:00.0Z   S:      Keyrelay action completed successfully.   S:       S:       S:         S:        example.nl   S:           S:          JnVdBAZxSxZj    S:           S:           S:             S:            256   S:            3   S:            8   S:            cmlraXN0aGViZXN0   S:             S:             S:            P1M13D   S:             S:           S:           S:          1999-04-04T22:01:00.0Z   S:           S:           S:          ClientX   S:           S:           S:          ClientY   S:           S:         S:       S:       S:      ABC-12345   S:      54321-ZYX   S:       S:     S:

Step 3: The existing registrar processes the poll message

Upon receipt of a key relay message from the registry, the existing registrar adds the new DNSSEC keys to the existing keys on the name server. The registrar then signs the new keys with their own keys, enabling the new keys to be included in the DNSSEC chain.

Step 4: The transfer is executed

In most cases, a 'normal' transfer involves two transactions: the first being the transfer of the domain name to the requesting registrar and the second being an update to the registration data following the transfer.A domain name transfer request takes the following form:

    C:    C:    C:      C:        C:          C:        example.nl    C:        1    C:            C:          JnVdBAZxSxZj     C:            C:          C:        C:    ABC-12345    C:      C:

Because of the timing issues referred to earlier, it is important that the DNSSEC chain is not modified before the domain name is updated. Only administrative and name server changes are permitted. A domain name update request takes the following form:

    C:    C:    C:      C:        C:          C:        example.nl    C:            C:              C:            ns1.registrar2.nl    C:            ns2.registrar2.nl    C:              C:            C:            C:              C:            ns1.registrar1.nl    C:            ns2.registrar1.nl    C:              C:            C:          C:        C:    500100-002    C:      C:

Step 5: The old keys are deleted

Once all the TTLs in the DNS have expired, the new registrar can amend the DNSSEC chain by deleting the old registrar's keys. For the new registrar, that implies performing an EPP transaction simply to delete the old keys. That is done using the EPP 'remove all' flag. The new keys have to be resubmitted in same message. Once the old keys have been deleted, the secure transfer is complete.

    C:    C:    C:      C:        C:          C:        example.com    C:          C:        C:        C:          C:            C:          true    C:            C:            C:              C:            256    C:            3    C:            8    C:            cmlraXN0aGViZXN0    C:              C:            C:          C:        C:    ABC-12345    C:      C: 

What happens after publication?

SIDN has been using the first version of key relay since July 2013. We introduced it mainly to demonstrate that the system worked [3]. Since then, there has been a lot of discussion within the IETF regarding the standard's XML structure, which has been revised in line with the workgroup's wishes. SIDN is waiting for the definitive internet standard to be published before amending its own implementation, since that will require a DRS EPP interface update.  Once our implementation has been harmonised with the finalised standard, it will be up to the registrars to start using secure the transfer mechanism. As DNSSEC validating resolvers enter increasingly widespread use, being able to transfer domain names securely is rapidly becoming a priority. SIDN will be working with the Registrars' Association to identify ways of encouraging adoption.

References

[1] https://www.sidnlabs.nl/wp_2013_EPP-keyrelay_v1.pdf [2] https://datatracker.ietf.org/doc/draft-ietf-eppext-keyrelay/

[3] http://www.dnssec.nl/cases/dnssec-secure-transfers-het-kan-wel.html (in Dutch only)

[4] https://datatracker.ietf.org/doc/draft-koch-dnsop-dnssec-operator-change/

Comments

Rik+Ribbers+17-11-2015_075

Rik Ribbers

Senior Service Developer

+31 26 352 55 00

support@sidn.nl

  • Monday 23 July 2018

    Internet security

    Beware: stand-ins and holiday temps targeted by cybercrooks

    Thumb-out-of-office

    Summer holiday period now in full swing

    Read more
  • Wednesday 3 July 2019

    DNSSEC

    BIND version 9.14 requires IPv6 and DNSSEC

    Thumb-logo-BIND9

    Default support for modern internet standards

    Read more
  • Tuesday 17 April 2018

    Knowledge

    Catch-up: Webinar on the implications of the GDPR for domain registration

    Thumb-webinar-blue

    Watch the webinar

    Read more

Sorry

Your browser is too old to optimally experience this website. Upgrade your browser to improve your experience.