Настроил bind, локально имена из моей зоны резолвятся. А вот если делать nslookup или dig по сети, ответа нет.
Система: Ubuntu 12.04
# named -v
BIND 9.8.1-P1
/etc/hosts на серваке с bind-ом (192.168.1.160)
127.0.0.1 localhost
127.0.1.1 dimon-desktop
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Зона:
/etc/bind/named.conf.local
zone "local" {
type master;
file "local/local";
notify no;
};
/etc/bind/local/local
$TTL 3600
@ SOA local. root.local. (
2012092501 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expiry
86400 ; TTL
)
@ NS ns.
pixun A 192.168.1.160
/etc/resolv.conf пустой
С сервера
# dig @192.168.1.160 pixun.local.
; <<>> DiG 9.8.1-P1 <<>> @192.168.1.160 pixun.local.
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28818
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;pixun.local. IN A
;; ANSWER SECTION:
pixun.local. 3600 IN A 192.168.1.160
;; AUTHORITY SECTION:
local. 3600 IN NS ns.
;; Query time: 0 msec
;; SERVER: 192.168.1.160#53(192.168.1.160)
;; WHEN: Tue Sep 25 23:47:15 2012
;; MSG SIZE rcvd: 61
С клиента
# dig @192.168.1.160 pixun.local.
; <<>> DiG 9.7.0-P1 <<>> @192.168.1.160 pixun.local.
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8715
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;pixun.local. IN A
;; AUTHORITY SECTION:
local. 10800 IN SOA localhost. nobody.localhost. 42 86400 43200 604800 10800
;; Query time: 36 msec
;; SERVER: 192.168.1.160#53(192.168.1.160)
;; WHEN: Tue Sep 25 23:47:55 2012
;; MSG SIZE rcvd: 81
ЧЯНТД? Почему при запросе с клиентов нет ответа?