A BIND server should be upgraded to use TSIG. Which configuration parameters should be added if the server should use the algorithm hmac-md5 and the key skrKc4DoTzi/takIlPi7JZA==?
A.
TSIG server.example.com. {
algorithm hmac-md5;
secret "skrKc4DoTzi/takIlPi7JZA==";
}
B.
key server.example.com. {
algorithm hmac-md5;
secret skrKc4DoTzi/takIlPi7JZA==;
}
C.
key server.example.com. {
algorithm hmac-md5;
secret "skrKc4DoTzi/takIlPi7JZA==";
}
D.
key server.example.com. {
algorithm hmac-md5;
secret="skrKc4DoTzi/takIlPi7JZA==";
}
E.
key server.example.com. algorithm hmac-md5; secret "skrKc4DoTzi/takIlPi7JZA==";
题解
「named.conf」设置档中,可以使用「key」区块来设置 TSIG 的密钥。「key」区块内需使用「algorithm」来指定要计算出密钥的算法;「secret」来指定密钥的 Base64 字符串,需使用双引号括起来。
所以答案是选项「C」。
