“Couldn’t resolve host name: Could not resolve host:” in Zabbix

network-monitoringzabbixzabbix-agent

Getting "Couldn't resolve host name: Could not resolve host: example.zabbixagent.com; Name or service not known" in Zabbix server although DNS and hostname of Zabbix Active Agent is correct. Is this a bug or a misconfiguration in Zabbix? Please help.

Best Answer

If this resolves from the commandline by copy-pasting the name (not retyping), it is likely that you have changed resolv.conf. In earlier versions of Zabbix you have to restart the daemons after changing that file. As you have not specified the Zabbix version, assuming your version still needs that restart.

If that does not help, copy the host DNS from the host properties and do ping, dig or similar from the server box and make sure to adjust the host setting to the correct name.