General discussion
-
Topic
-
Net_DNS Implementation
LockedI 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 187from 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?