<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
This code is published under a 0BSD license.
Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
*/
require_once('inc/icons.php');
require_once('inc/security.php');
require_once('class/domain.php');
require_role(ROLE_SYSTEMUSER);
require_once('dnsinclude.php');
$section = 'dns_dns';
$domain = new Domain((int) $_REQUEST['dom']);
$domain->ensure_userdomain();
DEBUG($domain);
title('DNS-Records für '.filter_output_html($domain->fqdn));
headline('DNS-Records für <em>'.filter_output_html($domain->fqdn).'</em>');
if ($domain->provider != 'terions' || $domain->billing != 'regular' || $domain->registrierungsdatum == null || $domain->kuendigungsdatum != null) {
$state = check_dns($domain->domainname, $domain->tld);
if ($state !== true) {
$current = 'Momentaner DNS-Server (u.A.): '.$state;
if ($state == 'NXDOMAIN') {
$current = 'Diese Domain ist aktuell nicht registriert.';
}
if (substr_compare($state, config('masterdomain'), -strlen(config('masterdomain')), strlen(config('masterdomain'))) === 0) {
warning('Es werden veraltete DNS-Server benutzt: '.$current);
warning('Bitte aktualisieren Sie diese Domain bei Ihrem Registrar auf unsere aktuellen DNS-Server-Namen, die Sie auf der Übersichtsseite finden.');
} else {
warning('Lokaler DNS-Server eingeschaltet aber nicht genutzt. '.$current);
}
}
}
$records = get_domain_records($domain->id);
$auto_records = get_domain_auto_records($domain->fqdn);