Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate into the directory /modules/registrars/smartnic/
  2. Create the file customdnsfile customdns.php with following content:

    Code Block
    languagephp
    linenumberstrue
    <?php
    
    function smartnic_customDNS ($params) {
    	return array (  array ('hostname' => '@', 'type' => 'a', 'address' => '5.4.3.2', 'aux' => '', 'ttl' => '300'),
                        array ('hostname' => 'www', 'type' => 'a', 'address' => '5.4.3.2', 'aux' => '', 'ttl' => '300'),
                        array ('hostname' => '@', 'type' => 'MX', 'address' => 'mail.example.org', 'aux' => '1', 'ttl' => '300'),
        );
    }

    Of course you have to adjust the array according to your wishes. AUX stands for the priority of the record, which only plays a role for MX and SRV records.

...