General discussion

Locked

Net_DNS Implementation

By tmaphosa ·
I was trying to implement the example published on
http://www.ypass.net/software/php/Net_DNS/examples/update.html but am getting an error on this statement:

$privkey="IQb1bG+vxnsLTMvTwXNqgy==";
:
:
$tsig = new Net_DNS_RR("dyndns.mydomain.com. TSIG " . $privkey);

Error:
Fatal error: Call to undefined function: mhash() in /usr/share/pear/Net/DNS/RR/TSIG.php on line 187

from named.conf:
key "dyndns.mydomain.com." {
algorithm hmac-md5;
secret "IQb1bG+vxnsLTMvTwXNqgy==";
};

zone "dyndns.mydomain.com" IN {
type master;
file "dyndns.mydomain.com";
allow-update { key "dyndns.mydomain.com.";
};
};

what is the correct way to pass parameters to the Net_DNS_RR() function?

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums