Host update
Changes a host's addresses and statuses. It cannot rename a host, and it refuses silently — see the section below.
Request
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<host:update xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:name>ns1.example.com.ua</host:name>
<host:add>
<host:addr ip="v4">203.0.113.11</host:addr>
</host:add>
<host:rem>
<host:addr ip="v4">203.0.113.10</host:addr>
</host:rem>
</host:update>
</update>
<clTRID>EXAMPLE-1-hupd-0001</clTRID>
</command>
</epp>
add and rem take addresses and statuses. Changing an address is a remove and an add in the same command — that way the host is never momentarily without one.
The rules from create still hold: an external host may not gain addresses (2306), and a subordinate one may not be left with none (2003).
A host cannot be renamed, and the failure is silent
The server reads <host:add> and <host:rem>. It does not act on <host:chg>.
So a frame that carries an address change and a rename together applies the address change, drops the rename, and answers 1000. Nothing tells you the rename did not happen. A client that trusts the result code will believe it renamed a name server that is still called what it was.
Here is such a frame:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<host:update xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:name>ns1.example.com.ua</host:name>
<host:add>
<host:addr ip="v4">203.0.113.11</host:addr>
</host:add>
<host:chg>
<host:name>ns2.example.com.ua</host:name>
</host:chg>
</host:update>
</update>
<clTRID>EXAMPLE-1-hupd-0002</clTRID>
</command>
</epp>
And here is the answer to it. The address was added, and the host is still called ns1.example.com.ua:
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<trID>
<clTRID>EXAMPLE-1-hupd-0002</clTRID>
<svTRID>NSPC-20261105094500-8F21C60B7D3E</svTRID>
</trID>
</response>
To rename a name server:
- create the new host;
- re-point every domain that uses the old one with domain update;
- delete the old host.
Changing glue on a signed domain's name server
If a domain delegated to this host is DNSSEC-signed, moving its addresses moves where the DNSKEY has to be published. The change applies, and you get a warning in the message queue if the key is not found at the new location — but until it is, the name fails validation for everyone using a validating resolver. See DNSSEC.
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 |
|---|---|
2001 | At most 13 IP addresses per host |
2003 | A host subordinate to a served zone requires at least one IP address (glue) |
2201 | Superordinate domain is not sponsored by you |
2304 | A domain delegated to this host is under an update lock |
2304 | Host status prohibits update |
2306 | IP addresses are only accepted for hosts subordinate to a served zone |
Result codes
| Code | When |
|---|---|
1000 | applied |
2001 | more than 13 addresses |
2003 | a subordinate host would be left with no address |
2303 | no such host |
2304 | a status prohibits it |
2306 | addresses on an external host, or a private/reserved address |
Notes
An address change does not repoint a domain. Domains reference the host object; changing its glue changes where that name server is, for every domain using it at once. That is usually what you want — and if you need to move one domain only, that is done with a different host in domain update, not by changing this one's addresses.
On this page