Rename Icinga2 node name

Hi, how can I update icinga director node name after I rename Icinga2 nodename?

If I rename the node, director will complaint that cannot resolve the host.

I noticed that if I add that hostname that it cannot find in the host file, will stop complaining.
Is there a way of making the change permanent?

I found out how. I modified the endpoint address and name and that sorted out the problem.
Please close this topic. Thanks