LINUX.ORG.RU
ФорумAdmin

Недоступность одного из DNS-серверов

 


0

1

В /etc/resolv.conf следующее:

nameserver 192.168.1.2
nameserver 192.168.1.3

Стал недоступным сервис DNS на 192.168.1.2. На 192.168.1.3 сервис доступен. При попытке сделать ping my-server-01 происходит следующее: ping как-бы подвисает. Видимо обращается то к первому DNS-серверу, то ко второму, и так далее.

Как сделать так, чтобы если умер один из DNS-серверов, он не затормаживал работу остальных программ? Может быть уменьшить какой-то таймаут?

RTFM

man resolv.conf

options

timeout:n

sets the amount of time the resolver will wait for a response from a remote name server before retrying the query via a different name server. Measured in seconds, the default is RES_TIMEOUT (currently 5, see<resolv.h>). The value for this option is silently capped to 30.

rotate

sets RES_ROTATE in _res.options, which causes round-robin selection of nameservers from among those listed. This has the effect of spreading the query load among all listed servers, rather than having all clients try the first listed server first every time.

anonymous
()
Ответ на: RTFM от anonymous

Спасибо, ман ещё и на русском.

Rubystar ★★
() автор топика

Ещё вариант — dnsmasq и --all-servers

MumiyTroll ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.