>[оверквотинг удален]
> убери forwarders (временно, пока твоя зона не заработает)
> права на /usr/local/etc/namedb смотри
> ось какая?
> bind с chroot или без запускается?
> сделай dig @127.0.0.1 lkmpikt.lan
> у тебя ж чётко видно что dig пришёл ответ с SERVER: 192.168.0.1#53(192.168.0.1)
> открой для себя
> named-checkconf
> и
> named-checkzone uname -a
FreeBSD ns 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
=====================
/usr/local/sbin/named -v
BIND 9.10.4-P3 <id:7e49f11>
========================
В файле /var/log/named.log
=================
Oct 8 02:53:09 ns named[843]: starting BIND 9.10.4-P3 <id:7e49f11> -u bind -c /usr/local/etc/namedb/named.conf -u bind -c /usr/local/etc/namedb/named.conf
Oct 8 02:53:09 ns named[843]: running on FreeBSD amd64 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
Oct 8 02:53:09 ns named[843]: built with '--localstatedir=/var' '--disable-linux-caps' '--disable-symtable' '--with-randomdev=/dev/random' '--with-libxml2=/usr/local' '--with-readline=-ledit' '--with-dlopen=yes' '--sysconfdir=/usr/local/etc/namedb' '--disable-fetchlimit' '--disable-filter-aaaa' '--disable-fixed-rrset' '--without-geoip' '--with-idn=/usr/local' '--enable-ipv6' '--disable-largefile' '--without-python' '--disable-querytrace' '--enable-rpz-nsdname' '--enable-rpz-nsip' 'STD_CDEFINES=-DDIG_SIGCHASE=1' '--without-gssapi' '--with-openssl=/usr' '--disable-native-pkcs11' '--with-dlz-filesystem=yes' '--without-gost' '--enable-threads' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd10.1' 'build_alias=amd64-portbld-freebsd10.1' 'CC=cc' 'CFLAGS=-O2 -pipe -DLIBICONV_PLUG -fstack-protector -isystem /usr/local/include -fno-strict-aliasing' 'LDFLAGS= -fstack-protector' 'LIBS=-L/usr/local/lib' 'CPPFLAGS=-DLIBICONV_PLUG -isystem /usr/local/include' 'CP
Oct 8 02:53:09 ns named[843]: ----------------------------------------------------
Oct 8 02:53:09 ns named[843]: BIND 9 is maintained by Internet Systems Consortium,
Oct 8 02:53:09 ns named[843]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
Oct 8 02:53:09 ns named[843]: corporation. Support and training for BIND 9 are
Oct 8 02:53:09 ns named[843]: available at https://www.isc.org/support
Oct 8 02:53:09 ns named[843]: ----------------------------------------------------
Oct 8 02:53:09 ns named[843]: found 1 CPU, using 1 worker thread
Oct 8 02:53:09 ns named[843]: using 1 UDP listener per interface
Oct 8 02:53:09 ns named[843]: using up to 4096 sockets
Oct 8 02:53:09 ns named[843]: loading configuration from '/usr/local/etc/namedb/named.conf'
Oct 8 02:53:09 ns named[843]: reading built-in trusted keys from file '/usr/local/etc/namedb/bind.keys'
Oct 8 02:53:09 ns named[843]: using default UDP/IPv4 port range: [49152, 65535]
Oct 8 02:53:09 ns named[843]: using default UDP/IPv6 port range: [49152, 65535]
Oct 8 02:53:09 ns named[843]: listening on IPv6 interfaces, port 53
Oct 8 02:53:09 ns named[843]: listening on IPv4 interface le0, 192.168.1.1#53
Oct 8 02:53:09 ns named[843]: listening on IPv4 interface lo0, 127.0.0.1#53
Oct 8 02:53:09 ns named[843]: generating session key for dynamic DNS
Oct 8 02:53:09 ns named[843]: sizing zone task pool based on 5 zones
Oct 8 02:53:09 ns named[843]: set up managed keys zone for view _default, file 'managed-keys.bind'
Oct 8 02:53:09 ns named[843]: automatic empty zone: 10.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 16.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 17.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 18.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 19.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 20.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 21.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 22.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 23.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 24.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 25.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 26.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 27.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 28.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 29.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 30.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 31.172.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 168.192.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 64.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 65.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 66.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 67.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 68.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 69.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 70.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 71.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 72.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 73.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 74.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 75.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 76.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 77.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 78.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 79.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 80.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 81.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 82.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 83.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 84.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 85.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 86.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 87.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 88.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 89.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 90.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 91.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 92.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 93.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 94.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 95.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 96.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 97.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 98.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 99.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 100.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 101.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 102.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 103.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 104.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 105.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 106.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 107.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 108.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 109.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 110.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 111.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 112.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 113.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 114.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 115.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 116.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 117.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 118.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 119.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 120.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 121.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 122.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 123.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 124.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 125.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 126.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 127.100.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 0.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 127.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 254.169.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 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.0.IP6.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty 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
Oct 8 02:53:09 ns named[843]: automatic empty zone: D.F.IP6.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 8.E.F.IP6.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 9.E.F.IP6.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: A.E.F.IP6.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: B.E.F.IP6.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
Oct 8 02:53:09 ns named[843]: automatic empty zone: EMPTY.AS112.ARPA
Oct 8 02:53:09 ns named[843]: configuring command channel from '/usr/local/etc/namedb/rndc.key'
Oct 8 02:53:09 ns named[843]: command channel listening on 127.0.0.1#953
Oct 8 02:53:09 ns named[843]: configuring command channel from '/usr/local/etc/namedb/rndc.key'
Oct 8 02:53:09 ns named[843]: command channel listening on ::1#953
Oct 8 02:53:09 ns named[843]: the working directory is not writable
Oct 8 02:53:09 ns named[843]: managed-keys-zone: loaded serial 0
Oct 8 02:53:09 ns named[843]: zone ./IN: has 0 SOA records
Oct 8 02:53:09 ns named[843]: zone ./IN: not loaded due to errors.
Oct 8 02:53:09 ns named[843]: zone 0.0.127/IN: loaded serial 2016100800
Oct 8 02:53:09 ns named[843]: zone 0.16.176.in-addr.arpa/IN: loaded serial 2016100800
Oct 8 02:53:09 ns named[843]: zone lkmpikt.lan/IN: loaded serial 2016100802
Oct 8 02:53:09 ns named[843]: zone localhost/IN: loaded serial 2016100800
Oct 8 02:53:09 ns named[843]: all zones loaded
Oct 8 02:53:09 ns named[843]: running
===========
dig @127.0.0.1 lkmpikt.lan
; <<>> DiG 9.10.4-P3 <<>> @127.0.0.1 lkmpikt.lan
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37897
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;lkmpikt.lan. IN A
;; ANSWER SECTION:
lkmpikt.lan. 86400 IN A 192.168.1.1
;; AUTHORITY SECTION:
lkmpikt.lan. 86400 IN NS ns.lkmpikt.lan.
;; ADDITIONAL SECTION:
ns.lkmpikt.lan. 86400 IN A 192.168.1.1
;; Query time: 17 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Oct 08 02:59:39 MSK 2016
;; MSG SIZE rcvd: 89
При запуске команды named-checkconf ни каких сообщений не происходит. При запуске команды named-checkzone lkmpikt.lan lkmpikt_lan.db и 0.168.192.in-addr.arpa 1.168.192.db на результат такой:
===========================================
named-checkzone lkmpikt.lan lkmpikt_lan.db
zone lkmpikt.lan/IN: loaded serial 2016100802
OK
named-checkzone 0.168.192.in-addr.arpa 1.168.192.db
zone 0.168.192.in-addr.arpa/IN: loaded serial 2016100800
OK
=========
и еще если делать nslookup на lkmpikt.lan, то результат такой
nslookup lkmpikt.lan
Server: 192.168.0.1
Address: 192.168.0.1#53
** server can't find lkmpikt.lan: NXDOMAIN
=================
на пинг, только такая реакция
ping lkmpikt.lan
PING lkmpikt.lan (192.168.0.102): 56 data bytes
64 bytes from 192.168.0.102: icmp_seq=0 ttl=64 time=0.145 ms
64 bytes from 192.168.0.102: icmp_seq=1 ttl=64 time=0.485 ms
64 bytes from 192.168.0.102: icmp_seq=2 ttl=64 time=0.439 ms
64 bytes from 192.168.0.102: icmp_seq=3 ttl=64 time=0.466 ms
64 bytes from 192.168.0.102: icmp_seq=4 ttl=64 time=0.539 ms
^C
--- lkmpikt.lan ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.145/0.415/0.539/0.139 ms
==============
root@ns:/usr/local/etc/namedb/master # ping ns
ping: cannot resolve ns: Unknown host
=======
root@ns:/usr/local/etc/namedb/master # ping ns.lkmpikt.lan
ping: cannot resolve ns.lkmpikt.lan: Unknown host
========
root@ns:/usr/local/etc/namedb/master # ping www.lkmpikt.lan
ping: cannot resolve www.lkmpikt.lan: Unknown host
На счет chroot без понятия, что это такое...
В файле resolv.conf при перезагрузке все удаляется, и остается только nameserver 192.168.0.1 - адрес роутера.