Vollständige Automatisierung der Domain-Kündigung zum Ablaufdatum (Expire). Da der EPP-Standard eine terminierte Kündigung nicht unterstützt, wird diese Funktion über eine Domain-Erweiterung (Extension) umgesetzt. Diese Aktion erfordert zwei Schritte, die Abfrage der Domain-Daten für das Ermitteln des Ablaufdatums und die Domain-Kündigung mit Angabe des Ablaufdatums.

Inhaltsverzeichnis dieser Seite

Ablaufdatum der Domain abfragen

Das benötigte Ablaufdatum wird über das Kommando DomainInfo abgefragt. Es ist in der Systemantwort im Tag exDate enthalten.

Request
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
    <command>
        <info>
            <domain:info xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
                <domain:name hosts="all">domain.de</domain:name>
            </domain:info>
        </info>
        <clTRID>ABC-12345</clTRID>
    </command>
</epp>
Response
<epp xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
    <response>
        <result code="1000">
            <msg lang="en">Command completed successfully</msg>
        </result>
        <resData>
            <domain:infData>
                <domain:name>domain.com</domain:name>
                <domain:roid>11109997-domain.com</domain:roid>
                <domain:registrant>10000001</domain:registrant>
                <domain:contact type="admin">10000001</domain:contact>
                <domain:contact type="tech">10000001</domain:contact>
                <domain:ns>
                    <domain:hostAttr>
                        <domain:hostName>ns1.nameserver.com</domain:hostName>
                    </domain:hostAttr>
                    <domain:hostAttr>
                        <domain:hostName>ns2.nameserver.com</domain:hostName>
                    </domain:hostAttr>
                </domain:ns>
                <domain:clID>user1, 4</domain:clID>
                <domain:crID>user1, 4</domain:crID>
                <domain:crDate>2011-02-15T14:44:41.000Z</domain:crDate>
                <domain:upID>user1, 4</domain:upID>
                <domain:upDate>2017-06-09T09:06:49.000Z</domain:upDate>
                <domain:exDate>2018-07-31T14:44:41.000Z</domain:exDate>
                <domain:authInfo>
                    <domain:pw>123ABC456DEF</domain:pw>
                </domain:authInfo>
            </domain:infData>
        </resData>
        <extension>
            <domainrobot:domain xmlns:domainrobot="urn:org:domainrobot:ns:ext-1.0">
                <domainrobot:zonec>10000001</domainrobot:zonec>
                <domainrobot:trustee>0</domainrobot:trustee>
                <domainrobot:privacy>0</domainrobot:privacy>
            </domainrobot:domain>
        </extension>
        <trID>
            <clTRID>ABC-12345</clTRID>
        </trID>
    </response>
</epp>

Kündigung zum Ablaufdatum anlegen

Die Kündigung zum Ablaufdatum legst du mit dem Kommando DomainDelete und der Domain-Erweiterung deletion an.  Das Ablaufdatum, der Wert im Tag exDate aus der Systemantwort, wird im Tag deletion im Block extension als Wert eingesetzt.

Wird kein Kündigungsdatum angegeben, wird die Kündigung sofort ausgeführt. Das Datum muss dem vom RFC vorgegebenem Format entsprechen.
Beispiel : 2018-07-31T12:47:12.000Z

Request
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
    <command>
        <delete>
            <domain:delete xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
                <domain:name>domain.com</domain:name>
            </domain:delete>
        </delete>
 		<extension>
            <domainrobot:domain xmlns:domainrobot="urn:org:domainrobot:ns:ext-1.0">
                <domainrobot:deletion>2018-07-31T12:47:12.000Z</domainrobot:deletion>
            </domainrobot:domain>
        </extension>
		<clTRID>ABC-12345</clTRID>
    </command>
</epp>
Response
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
    <response>
        <result code="1001">
            <msg lang="en">Command completed successfully; action pending</msg>
        </result>
        <extension>
            <domainrobot:domain xmlns:domainrobot="urn:org:domainrobot:ns:ext-1.0">
                <domainrobot:deletion>2018-07-31T12:47:12.000Z</domainrobot:deletion>
            </domainrobot:domain>
        </extension>
        <trID>
            <clTRID>ABC-12345</clTRID>
        </trID>
    </response>
</epp>