1
Service Configuration
medium
A company runs a monitoring agent service (monitor.service) that must start after the network is fully up and the DNS resolver is ready. The service currently has the following dependencies in its unit file:
[Unit]Description=Monitoring Agent After=network.target Wants=network.target
[Service]ExecStart=/usr/bin/monitor
The service starts, but often fails to resolve hostnames because DNS is not yet available. Which change should be made to the unit file to ensure the service only starts after DNS is ready?