Hanno Böck To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/ 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/base.php'); require_once('inc/icons.php'); require_once('inc/security.php'); require_role(ROLE_SYSTEMUSER); require_once('dnsinclude.php'); $domains = get_domain_list((isset($_SESSION['customerinfo']['customerno']) ? $_SESSION['customerinfo']['customerno'] : null), $_SESSION['userinfo']['uid']); title('DNS-Records'); output('

Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.

'); //$output .= ' //'; $output .= '
HostnameTypIP-Adresse/InhaltTTL 
'; DEBUG($domains); $external_domains = false; $unused_dns = false; foreach ($domains as $dom) { if ($dom->provider != 'terions') { $external_domains = true; } $style=""; if ($dom->dns == 0) { if (strstr($dom->domainname, '.')) { $output .= ''; } else { $output .= ''; } continue; } $records = get_domain_records($dom->id); $autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); if ($dom->provider != 'terions' || $dom->billing != 'regular' || $dom->registrierungsdatum == null || $dom->kuendigungsdatum != null) { $state = check_dns($dom->domainname, $dom->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) { $output .= ''; continue; } else { $output .= ''; $unused_dns = true; continue; } } } $output .= ''; /* if ($records) { #$output .= '

'.$dom->fqdn.'

'; #$output .= '
DomainnameManuelle recordsAutomatische recordsStatus
'.$dom->fqdn.'------Subdomain ohne eigene DNS-Zone
'.$dom->fqdn.'------'.icon_disabled('DNS-Server ausgeschaltet').' Es wird ein externer DNS-Server benutzt
'.internal_link('save', icon_add().' Lokalen DNS-Server aktivieren', "dom={$dom->id}&dns=1").'
'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").''.count($records).''.$autorec.''.icon_enabled('DNS-Server aktiv').'
'.icon_warning().'Es werden veraltete DNS-Server benutzt
'.$current.'
'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").''.count($records).''.$autorec.''.icon_enabled('DNS-Server aktiv').'
'.icon_warning().' Lokaler DNS-Server eingeschaltet aber nicht genutzt
'.$current.'
'.internal_link('save', icon_delete().' Lokalen DNS-Server abschalten', "dom={$dom->id}&dns=0").'
'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").''.count($records).''.$autorec.''.icon_enabled('DNS-Server aktiv').'
#'; foreach ($records AS $rec) { $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] ); if ($rec['dyndns']) $data = 'DynDNS #'.$rec['dyndns'].''; $output .= "\n"; } #$output .= '
HostnameTypIP-Adresse/InhaltTTL 
".internal_link('dns_edit', $rec['fqdn'], "id={$rec['id']}")."".strtoupper($rec['type'])."$data{$rec['ttl']} Sek.".internal_link('save', 'löschen', "id={$rec['id']}&type=dns&action=delete")."

'; }*/ } $output .= '
'; if ($external_domains) { $own_ns = own_ns(); asort($own_ns); $output.='

Hinweis zu extern registrierten Domains

Wenn Sie Ihre Domains bei einem anderen Provider registrieren und dennoch unsere DNS-Server nutzen möchten, dann stellen Sie bitte sicher, dass der DNS-Server oben eingeschaltet ist und stellen Sie dann folgende DNS-Server ein:

'; } if ($unused_dns) { $output.='

Wichtiger Hinweis

In der obigen Liste befinden sich Domains, bei denen unser DNS-Server aktiviert ist aber die Domain momentan auf einen anderen DNS-Server eingerichtet ist. Dies ist normal bei bevorstehenden Domain-Transfers zu uns, sollte aber nicht dauerhaft so bleiben.

Wenn Sie weiterhin einen externen DNS-Server benutzen möchten, dann schalten Sie bitte unseren DNS-Server für diese Domain aus, damit es nicht zu Fehlfunktionen kommt.

Im Zweifel sprechen Sie bitte unseren Support an.

'; }