dnszabbixnetbios

Zabbix Server do not resolve NetBios name in "DNS Name" when adding host


There is a problem confused me, I searched on Google but no result:

Most of my clients said that they are Windows, We have Microsoft AD. And DHCP, DNS servers are Windows Servers.

As you know non-domain joining windows client do not register on DNS, so windows use NetBios to resolve these clients.

I install samba-winbind on Zabbix Server and add

"wins" in /etc/nsswitch.conf : --> hosts:   files wins dns

So that Linux can use NetBios to resolve Windows Hostname, and I can get the response when pinging these clients.

Problem:

When I add the host to Zabbix Server, I fill in DNS name with the NetBIOS name. But Zabbix can't resolve.

I can Ping NetBios name in Linux, But Zabbix Server cannot resolve it when adding the host. What should I do to make Zabbix server resolve NetBIOS name, Thanks...


Solution

  • While daemons follow resolv.conf changes in recent Zabbix versions, other name lookup file changes might require daemon restart. Please restart Zabbix server.