I am trying to register my first agent to the server.
I've used the following to install the agent:
msiexec.exe /i wazuh-agent-4.5.0-1.msi /q WAZUH_MANAGER='KNX-BRADTEST' WAZUH_REGISTRATION_SERVER='KNX-BRADTEST' WAZUH_AGENT_GROUP='default'
However, the following comes up:
2023/08/16 12:23:03 wazuh-agent: INFO: Requesting a key from server: 'KNX-BRADTEST'
2023/08/16 12:23:07 wazuh-agent: ERROR: Could not resolve hostname: 'KNX-BRADTEST'
I've verified my workstation can resolve 'knx-bradtest' via dns.
Whats the problem here?
P.S. --
I've tried all of the following:
msiexec.exe /i wazuh-agent-4.5.0-1.msi /q WAZUH_MANAGER='
knx-bradtest.blahblah.com' WAZUH_REGISTRATION_SERVER='
knx-bradtest.blahblah.com' WAZUH_AGENT_GROUP='default'
msiexec.exe /i wazuh-agent-4.5.0-1.msi /q WAZUH_MANAGER='knx-bradtest' WAZUH_REGISTRATION_SERVER='knx-bradtest' WAZUH_AGENT_GROUP='default'
msiexec.exe /i wazuh-agent-4.5.0-1.msi /q WAZUH_MANAGER='KNX-BRADTEST' WAZUH_REGISTRATION_SERVER='KNX-BRADTEST' WAZUH_AGENT_GROUP='default'
msiexec.exe /i c:\wazuh\wazuh-agent-4.5.0-1.msi /q WAZUH_MANAGER='192.168.0.141' WAZUH_REGISTRATION_SERVER='192.168.0.141' WAZUH_AGENT_GROUP='default'