Hello and Greeting
The server speaks first. The moment the TLS handshake completes it sends a <greeting>, before you have sent anything — so your client must be ready to read a frame immediately after connecting, not only after it has written one.
You can ask for the greeting again at any time by sending <hello>. It takes no transaction id and returns no result code, which also makes it the keep-alive: a <hello> every few minutes keeps a session from being closed for idling.
<hello>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<hello/>
</epp>
<greeting>
This is the shape port 700 answers with. Everything in it is what the server really advertises; only the date is an example, and it is the server clock at the moment you ask:
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<greeting>
<svID>NAMESPACE Registry EPP Server 1.0</svID>
<svDate>1970-01-01T00:00:00.000+03:00</svDate>
<svcMenu>
<version>1.0</version>
<lang>en</lang>
<lang>ru</lang>
<lang>ua</lang>
<lang>uk</lang>
<objURI>urn:ietf:params:xml:ns:epp-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
<svcExtension>
<extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
<extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>
<extURI>http://namespace.com.ua/epp/registry-1.0</extURI>
<extURI>http://namespace.com.ua/epp/balance-1.0</extURI>
<extURI>urn:ietf:params:xml:ns:epp:fee-1.0</extURI>
<extURI>urn:ietf:params:xml:ns:epp:loginSec-1.0</extURI>
<extURI>urn:ietf:params:xml:ns:changePoll-1.0</extURI>
</svcExtension>
</svcMenu>
<dcp>
<access><all/></access>
<statement>
<purpose><admin/><prov/></purpose>
<recipient><public/></recipient>
<retention><stated/></retention>
</statement>
</dcp>
</greeting>
</epp>
What to read from it
<svDate> is Kyiv time with its offset shown. Every date this server sends carries an offset; none of them is UTC with the offset left off. Parse the offset rather than reading the digits.
The <objURI> are the namespaces to use in your commands. There are three objects — domain (RFC 5731), host (RFC 5732) and contact (RFC 5733); the fourth URI is the EPP namespace itself. All of them are standard: we introduce nothing of our own here.
The <extURI> are the extensions this server understands:
| URI | What it is for |
|---|---|
urn:ietf:params:xml:ns:secDNS-1.1 | DNSSEC — DS records on a domain (RFC 5910) |
urn:ietf:params:xml:ns:rgp-1.0 | restoring a deleted domain (RFC 3915) |
http://namespace.com.ua/epp/registry-1.0 | our own extension — see the pages that use it |
http://namespace.com.ua/epp/balance-1.0 | your account balance |
urn:ietf:params:xml:ns:epp:fee-1.0 | what an operation will cost, before you commit to it |
urn:ietf:params:xml:ns:epp:loginSec-1.0 | longer passwords and login security events (RFC 8807) |
urn:ietf:params:xml:ns:changePoll-1.0 | poll messages that say what changed and who changed it (RFC 8590) |
Four languages, and two of them are the same one. en, ru, ua and uk are advertised; ua and uk both mean Ukrainian, and both are accepted because clients in this market were written against registries that chose one or the other. Pick either. Asking for a language that is not on this list fails <login> with 2102.
Mirror the services you intend to use into your <login>. A <login> that asks for an objURI or extURI this greeting does not list is refused — see Login.
<dcp> is the data-collection policy required by RFC 5730. It says what we do with the data you send: it is used to administer and provision the objects, it is retained for a stated period, and some of it becomes public — the registry that operates the zone publishes data about registered names.
Read the greeting at startup
The list of extensions changes: things are added, and things are eventually retired. A client with a hard-coded list keeps working, but it will not see a new extension when one appears — and if it sends that same hard-coded list in <login>, it breaks on the day one of the entries is retired.
So do this: read the greeting at startup, keep the entries your client supports, and send that list in <login>.
Next: Login and Logout.
On this page