diff --git a/epp.php b/epp.php
index d2dd476..ebf8006 100644
--- a/epp.php
+++ b/epp.php
@@ -573,7 +573,17 @@ public function registerDomain(Registrar_Domain $domain)
$to[] = $domain->{'get' . ucfirst($ns)}();
$from[] = '/{{ clTRID }}/';
$clTRID = str_replace('.', '', round(microtime(1), 3));
- $to[] = htmlspecialchars($this->config['registrarprefix'] . '-host-check-' . $clTRID);
+ $to[] = htmlspecialchars($this->config['registrarprefix'] . '-host-check-' . $clTRID);
+
+ $result = dns_get_record($ns,DNS_A + DNS_AAAA);
+ foreach ($result as $ip) {
+ if ($ip['ip']) {
+ $ips.="\t\t\t ".''.$ip['ip'].''."\n";
+ }else if ($ip['ipv6']) {
+ $ips.="\t\t\t ".''.$ip['ipv6'].''."\n";
+ }
+ $from[] = '/{{ ips }}/';
+ $to[] = $ips;
$xml = preg_replace($from, $to, '
{{ name }}
-
+{{ ips }}
{{ clTRID }}