Example #1
0
 /**
  * Constructor - builds a new Net_DNS2_Updater objected used for doing 
  * dynamic DNS updates
  *
  * @param string $zone    the domain name to use for DNS updates
  * @param mixed  $options an array of config options or null
  *
  * @throws Net_DNS2_Exception
  * @access public
  *
  */
 public function __construct($zone, array $options = null)
 {
     parent::__construct($options);
     //
     // create the packet
     //
     $this->_packet = new Net_DNS2_Packet_Request(strtolower(trim($zone, " \n\r\t.")), 'SOA', 'IN');
     //
     // make sure the opcode on the packet is set to UPDATE
     //
     $this->_packet->header->opcode = Net_DNS2_Lookups::OPCODE_UPDATE;
 }
Example #2
0
 /**
  * Constructor - creates a new Net_DNS2_Resolver object
  *
  * @param mixed $options either an array with options or null
  *
  * @access public
  *
  */
 public function __construct(array $options = null)
 {
     parent::__construct($options);
 }