у нас в городе одна контора сделала локальную зону .d*
я сделал свою локальную))) .xyj
вот конфиг для bind9, named.conf, кусок его:
code:
zone "xyj" {
type master;
file "/etc/bind/db.hyj";
allow-update { none;};
allow-query { any;};
allow-transfer { any; };
notify yes;
};
вот db.hyj:
code:
$TTL 604800
@ IN SOA xyj. root.xyj. (
12447 ; Serial
300 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS 192.168.0.1
@ IN A 192.168.0.1
test IN A 192.168.0.1
после перезапуска bind-а (/etc/init.d/bind9 restart), можно попинговать)))):
code:
piroman-gw:/home/piroman17# ping test.xyj
PING test.xyj (192.168.0.1) 56(84) bytes of data.
64 bytes from piroman-gw (192.168.0.1): icmp_seq=1 ttl=64 time=0.166 ms
64 bytes from piroman-gw (192.168.0.1): icmp_seq=2 ttl=64 time=0.126 ms
вот так прикалываемся от делать нечего)))