how to prioritize localhost /etc/hosts as DNS
Posted: Sun May 06, 2018 1:56 am
Dear Expert
In /etc/resolv.conf , we have 3 DNS, one of DNS was having issue, due to this issue, nearly all HOSTs giving error : "Plugin timed out after 10 seconds".
We removed (disabled) that DNS (10.20.30.40) from this /etc/resolv.conf file and issue got fixed.
FYI, we are not fully depend on this DNS server (10.20.30.40) to resolve the HOSTs. We rely on our localhost DNS (/etc/hosts file), so how to prioritize localhost DNS (/etc/hosts) file to be our Prime DNS to resolve Nagios HOSTs? You know it will never fail.
Regards
In /etc/resolv.conf , we have 3 DNS, one of DNS was having issue, due to this issue, nearly all HOSTs giving error : "Plugin timed out after 10 seconds".
We removed (disabled) that DNS (10.20.30.40) from this /etc/resolv.conf file and issue got fixed.
FYI, we are not fully depend on this DNS server (10.20.30.40) to resolve the HOSTs. We rely on our localhost DNS (/etc/hosts file), so how to prioritize localhost DNS (/etc/hosts) file to be our Prime DNS to resolve Nagios HOSTs? You know it will never fail.
Regards