On 25. 10. 2013, at 21:53, Eric Kom <erickom(a)metropolitancollege.co.za> wrote:
and check the version:
#knotd -V
Knot DNS, version 1.3.2
I tried to hide the version as above:
#
# This is a sample of a minimal configuration file for Knot DNS.
#
# For exhaustive list of all options see samples/knot.full.conf
# in the source directory or refer to user manual.
#
system {
# Identity of the server (see RFC 4892).
##identity on;
##
version "My First Knot Config..";
# Version of the server (see RFC 4892)
version on;
[...]
The version remain the same
Those statements don't work for command line utilities, but for the remote queries as
specified in RFC 4892, f.e.:
$ dig CH TXT version.bind. @pagan.rfc1925.org
; <<>> DiG 9.8.3-P1 <<>> CH TXT version.bind. @pagan.rfc1925.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54722
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;version.bind. CH TXT
;; ANSWER SECTION:
version.bind. 0 CH TXT "Knot DNS 1.3.2"
;; Query time: 115 msec
;; SERVER: 89.187.130.14#53(89.187.130.14)
;; WHEN: Sun Oct 27 14:00:02 2013
;; MSG SIZE rcvd: 57
Another question is, when I tried to run the command
knotd -c knot.conf, I received errors as above:
root@chris:/usr/local/etc/knot # knotd -c knot.conf
2013-10-25T19:46:00 Reading configuration '/usr/local/etc/knot/knot.conf' ...
2013-10-25T19:46:00 [error] Cannot bind to socket (errno 48).
2013-10-25T19:46:00 [error] Could not bind to UDP interface 0.0.0.0 port 53.
2013-10-25T19:46:00 [error] Cannot bind to socket (errno 48).
2013-10-25T19:46:00 [error] Could not bind to UDP interface :: port 53.
2013-10-25T19:46:00 [warning] Server started, but no zones served.
and the errors makes me to pkill knot the process and start the daemon again.
I my doing wrong?
Some other daemon is already running and is bound to port 53.
Could you try checking it with:
netstat -unlp
(or equivalent command on FreeBSD)
O.
--
Ondřej Surý -- Chief Science Officer
-------------------------------------------
CZ.NIC, z.s.p.o. -- Laboratoře CZ.NIC
Americka 23, 120 00 Praha 2, Czech Republic
mailto:ondrej.sury@nic.cz
http://nic.cz/
tel:+420.222745110 fax:+420.222745112
-------------------------------------------