Metaregistrar EPP documentation

All host commands: (check) (create) (delete) (info) (modify)

Host create

To create a host you need to use the host:create command. With the host create command, you can specify IP addresses that will be connected to this host object.

Please note that you can create IPv4 and IPv6 addresses, and that the IPv6 addresses may be in long or in short format.

Example request

<?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:host="urn:ietf:params:xml:ns:host-1.0"> <command> <create> <host:create> <host:name>ns1.docu-test-case.com</host:name> <host:addr ip="v4">1.2.3.4</host:addr> <host:addr ip="v6">fe80:0:0:0:200:f8ff:fe21:67cf</host:addr> </host:create> </create> <clTRID>57d147edeb10f</clTRID> </command> </epp>

Example Response

<?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:host="urn:ietf:params:xml:ns:host-1.0" xmlns:ext="http://www.metaregistrar.com/epp/ext-1.0" xmlns:command-ext="http://www.metaregistrar.com/epp/command-ext-1.0" xmlns:command-ext-domain="http://www.metaregistrar.com/epp/command-ext-domain-1.0" xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0"> <response> <result code="1000"> <msg>Command completed successfully</msg> </result> <resData> <host:creData> <host:name><![CDATA[ns1.docu-test-case.com]]></host:name> <host:crDate><![CDATA[2016-09-08T11:13:52.000000+0000]]></host:crDate> </host:creData> </resData> <trID> <svTRID>MTR_faf4d2fade9a0a6b2c001803b77b1eefee76a1ec</svTRID> <clTRID>57d147edeb10f</clTRID> </trID> </response> </epp>