Domain update
Changes a domain: its name servers, its contacts, its statuses, its registrant, its transfer code and its DNSSEC records. One command can do several of those at once.
Request
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<domain:update xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com.ua</domain:name>
<domain:add>
<domain:ns><domain:hostObj>ns3.example.net</domain:hostObj></domain:ns>
<domain:status s="clientTransferProhibited"/>
</domain:add>
<domain:rem>
<domain:ns><domain:hostObj>ns2.example.net</domain:hostObj></domain:ns>
</domain:rem>
<domain:chg>
<domain:registrant>EXAMPLE-1-C4</domain:registrant>
<domain:authInfo><domain:pw>New-Str0ng!</domain:pw></domain:authInfo>
</domain:chg>
</domain:update>
</update>
<clTRID>EXAMPLE-1-upd-0001</clTRID>
</command>
</epp>
| Block | What goes in it |
|---|---|
<add> | name servers, contacts, statuses to add |
<rem> | name servers, contacts, statuses to remove |
<chg> | the registrant, and the transfer code — values that are replaced, not added to |
add and rem are sets: adding a name server that is already there, or removing one that is not, is an error rather than a no-op. Read the current state with info and send the difference.
Changing name servers
Removing name servers down to fewer than the zone's minimum leaves the name inactive — it stops resolving. The server does not forbid it, and occasionally it is what you want, but more often it is a mistake in the difference you sent.
If the name is signed, changing name servers has a consequence: the new servers must publish a DNSKEY matching the DS records the registry holds. The change is applied either way, and you get a warning in the message queue if the key is not there — but the name will fail validation for everyone using a validating resolver until it is. See DNSSEC.
Changing the registrant
<domain:chg><domain:registrant> replaces the owner of the name. In several zones this is not a purely technical act: the registry's rules may require a written application from the current registrant, and the change may be refused or held until that exists.
So this is a legal change in which the EPP command is the last step, not the first.
Changing the transfer code
A new authInfo must satisfy the zone's strength policy, or the command fails 2306. Rotating it is the right response to a customer leaving, a support ticket the code may have ended up in, or a suspicion that it is in the wrong hands.
Rotating it with us is not enough if the name is sponsored elsewhere. The code that matters for a transfer is the one the sponsoring registry holds.
Statuses
Add and remove your own client* statuses here:
clientDeleteProhibited, clientUpdateProhibited, clientTransferProhibited, clientRenewProhibited, clientHold
clientUpdateProhibited blocks updates, including most attempts to lift it. The one exception is a command whose only content is the removal of that status — nothing added, nothing changed, no other status removed. So unlocking takes two commands: one to lift the prohibition, one to make the change. A command that tries to do both is refused 2304, which reads like a bug in your client and is not.
The server* statuses are the registry's; you cannot add or remove them.
DNSSEC
DS records are added and removed through a <secDNS:update> block in <extension>, in the same command. Its shape differs from the create form — DNSSEC shows both.
Changing the licence (second-level .ua)
A name registered under .ua at the second level carries a trademark or licence number. To replace it:
<extension>
<nspc:update xmlns:nspc="http://namespace.com.ua/epp/registry-1.0">
<nspc:license>TM-UA-654321</nspc:license>
</nspc:update>
</extension>
Sent for a zone that does not use a licence, this is refused 2306.
Restore is also an update
A restore is a <domain:update> carrying only an <rgp:restore> extension and no other change. It must be alone in the command: an update that tries to restore and change something else is refused.
What the server refuses, in its own words
Each refusal arrives as a result code and a sentence in <result><msg>, in the shape Commands and responses shows. The sentence is translated into the language you chose at login where a translation exists, and the lang attribute says which language you are being given. Branch on the code, never on the sentence — the code is the contract, the wording is not.
| Code | What the message says |
|---|---|
2004 | Fee currency must be UAH |
2004 | The agreed fee does not cover the actual price (350.00 UAH) |
2004 | secDNS keyData unsupported algorithm |
2004 | secDNS keyTag out of range (0-65535) |
2004 | secDNS unsupported algorithm |
2004 | secDNS unsupported digestType (use 2=SHA-256 or 4=SHA-384) |
2005 | License must be 1-50 alphanumeric characters |
2005 | secDNS digest length does not match digestType |
2005 | secDNS keyData pubKey must be base64 |
2005 | secDNS: at least one dsData or keyData record is required |
2005 | secDNS: use either dsData or keyData, not both |
2303 | secDNS: record to remove does not exist |
2304 | A change to this domain is already pending at the registry; wait for it to be decided |
2304 | A restore for this domain is already pending at the registry |
2304 | Domain is not in the redemption period |
2304 | Domain status prohibits update |
2304 | The redemption period has ended; the domain is no longer restorable |
2304 | clientHold is held by the registry until the expired registration is renewed |
2306 | DNSSEC is not supported for this zone |
2306 | Restore is closed for this zone |
2306 | Restore is closed for this zone (phase-out) |
2306 | rgp:restore must be the only operation in the update |
2306 | secDNS keyData flags must be 256 (ZSK) or 257 (KSK) |
2306 | secDNS keyData protocol must be 3 |
2306 | secDNS: at most 6 DS records |
2306 | secDNS: duplicate DS record |
2306 | secDNS: duplicate key record |
2306 | secDNS: maxSigLife is not supported on this registry |
2306 | secDNS: this registry accepts DS records only (keyData is not supported) |
2307 | Zone is not served |
2400 | No channel for this domain |
Result codes
| Code | When |
|---|---|
1000 | applied |
1001 | accepted, finishing at the registry — resolve from poll |
2003 / 2004 / 2005 | something missing, out of range, or malformed |
2303 | the domain, a contact or a host you referenced does not exist |
2304 | a status prohibits it — yours to lift, or the registry's and not |
2305 | an association prevents it |
2306 | policy — a weak transfer code, DNSSEC in a zone that has none, a seventh DS record |
Notes
Nothing partial. An update either applies as a whole or changes nothing.
After a timeout, read before you resend. The state after a repeated update would be the same, but the command itself fails: you cannot add a status the first attempt already added. Run info, compare, and send only the difference.
On this page