Skip to content

Commit 42f8223

Browse files
author
Till Brehm
committed
Fixed: FS#3477 - DNS Records with empty host cause errors in BIND
1 parent 5335a40 commit 42f8223

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function soa_update($event_name, $data) {
106106
if(is_array($records) && !empty($records)){
107107
for($i=0;$i<sizeof($records);$i++){
108108
if($records[$i]['ttl'] == 0) $records[$i]['ttl'] = '';
109+
if($records[$i]['name'] == '') $records[$i]['name'] = '@';
109110
//* Split TXT records, if nescessary
110111
if($records[$i]['type'] == 'TXT' && strlen($records[$i]['data']) > 255) {
111112
$records[$i]['data'] = implode('" "',str_split( $records[$i]['data'], 255));

0 commit comments

Comments
 (0)