I've setting up a server which collects statistics of different other servers. I'm using the network plugin of collectd, so I configured the plugin network by setting up a listener.
In my network, I can use the private IP for "Server" in the configuration. Everything works. One of these servers is a remote server and can only be reached through the internet. So the server is configured to send the data to an DNS-address (see config snippet). After starting the service of collectd on this server it works perfect. If I get a new dynamic IP-address for my connection, the remote server doesn't send data to collectd. Only if I restart collectd on the remote server, it works until the IP-address will be changed again.
In my opinion the plugin resolves the DNS-address only once at startup. Is there any option to solve my problem without restarting the collectd service?
config:
<Plugin network>
# # client setup:
Server "name.of.server" "25826"
</Plugin>