Я менял настройки DNS, но тем не менее пингуются старые адреса, которых уже нет. Видимо, где-то закешировалось.
Пробовал перезапукать сервисы - не помогло.
rdnc тоже не помог
я всего лишь заменил 169.254.107 на 192.168.0
и для обратной зоны аналогично.
/etc/namedb/named.conf
Код:
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { 127.0.0.1; 192.168.0.1; };
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "master/localhost.rev";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "master/ina";
allow-update { 192.168.0.1; };
};
zone "company.ru" {
type master;
file "master/company.ru";
allow-update { 192.168.0.1; };
};
/etc/namedb/master/ina
Код:
$ORIGIN .
$TTL 3600 ; 1 hour
0.168.192.in-addr.arpa IN SOA server.company.ru. root.server.company.ru. (
20072158 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
3600000 ; expire (5 weeks 6 days 16 hours)
3600 ; minimum (1 hour)
)
NS server.company.ru.
$ORIGIN 0.168.192.in-addr.arpa.
* PTR host.company.ru.
/etc/namedb/master/company.ru
Код:
$ORIGIN .
$TTL 3600 ; 1 hour
kim-sh.ru IN SOA server.company.ru. root.server.company.ru. (
20072165 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
3600000 ; expire (5 weeks 6 days 16 hours)
3600 ; minimum (1 hour)
)
NS server.company.ru.
$ORIGIN company.ru.
server A 192.168.0.1
@ A 91.197.8.212
www A 91.197.8.212
domino-srv A 192.168.0.250
ftp A 213.248.47.47
# ifconfig
Код:
age0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4319b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO>
ether 00:1b:fc:b9:5d:e4
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:02:a5:43:7b:fe
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:02:a5:43:7b:ff
inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
inet 169.254.106.1 --> 169.254.106.2 netmask 0xffffffff
Opened by PID 1299