Web Development

General discussion


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:

$tsig = new Net_DNS_RR("dyndns.mydomain.com. TSIG " . $privkey);

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.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums