Menu

#20 Allow TXT records greater than 255 caracteres

open
nobody
None
5
2014-11-27
2014-09-24
No

Increasse the TXT size record to store DKIM 2048b

impact : database field size update to VARCHR(1024) or 2048
and in commit.php replace

    elseif($record[3] == "TXT") {
        $destination = "\"" . $record[5] . "\"";
    }

by

elseif($record[3] == "TXT") {
                        $destination = "";
                        foreach (str_split($record[5],255) as $subtxt) {
                                $destination = $destination . "\n\t\t\t\t\t\"" . $subtxt . "\"";
                        }
                    $destination = "(" . substr($destination,6) . ")";
                }

Discussion


Log in to post a comment.