options { default-key "rndc-key"; default-server 127.0.0.1; default-port 953; }; # End of rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed: # key "rndc-key" { # algorithm hmac-md5; # secret "9lLye919/f2DTE+cObb1kg=="; # }; # # controls { # inet 127.0.0.1 port 953 # allow { 127.0.0.1; } keys { "rndc-key"; }; # }; # End of named.conf
注意,請把后面以:
# Use with the following in named.conf, adjusting the allow list as needed:
freebsd# /usr/local/sbin/named -gc /usr/local/etc/named.conf & [1] 730 Feb 17 20:20:36.892 starting BIND 9.2.3 -gc /usr/local/etc/named.conf Feb 17 20:20:36.892 using 1 CPU Feb 17 20:20:36.894 loading configuration from '/usr/local/etc/named.conf' Feb 17 20:20:36.894 listening on IPv4 interface fxp0, 192.168.0.19#53 Feb 17 20:20:36.895 listening on IPv4 interface lo0, 127.0.0.1#53 freebsd# Feb 17 20:20:36.896 command channel listening on 127.0.0.1#953 Feb 17 20:20:36.896 ignoring config file logging statement due to -g option Feb 17 20:20:36.898 zone 0.0.127.IN-ADDR.ARPA/IN: loaded serial 20040217 Feb 17 20:20:36.899 zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA/IN: loaded serial 20040217 Feb 17 20:20:36.899 zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT/IN: loaded serial 20040217 Feb 17 20:20:36.899 running