protected function saveDnsRecord($domain, $record)
    {
        $this->sortArray($record);

        try {
            History::create(['type' => 'dns',
                             'meta' => $domain,
                             'record' => $this->utf8_converter($record)]);
        } catch (Exception $e) {
            $this->eye->logger()->error('DNS record save failed', $e, $domain);
            throw $e;
        }
    }
protected function saveDnsRecord($domain, $record)
    {
        $this->sortArray($record);

        try {
            History::create(['type' => 'dns',
                             'meta' => $domain,
                             'record' => $this->utf8_converter($record)]);
        } catch (Exception $e) {
            $this->eye->logger()->error('DNS record save failed', $e, $domain);
            throw $e;
        }
    }
protected function saveDnsRecord ( $ domain , $ record ) { $ this -> sortArray ( $ record ) ; try { History :: create ( [ 'type' => 'dns' , 'meta' => $ domain , 'record' => $ this -> utf8_converter ( $ record ) ] ) ; } catch ( Exception $ e ) { $ this -> eye -> logger ( ) -> error ( 'DNS record save failed' , $ e , $ domain ) ; throw $ e ; } }
Save the DNS record to the database.

@param  string  $domain
@param  array  $record
@return void
Save the DNS record to the database .