ctrld: DNS resolving fails when restarting or awaking the computer

OS: macOS Ventura 13.2.1 (22D68) Computer: MacBook Pro with M1 Max chip (Apple Silicon) ctrld version: 1.1.3 darwin_arm64

DNS resolving fails when restarting or awaking the computer.

The command sudo ./ctrld start --cd $DID --config /Applications/CLI/ctrld/ctrld.toml creates a file called ctrld.plist in /Library/LaunchDaemons. This file sets a daemon with the following command: /Applications/CLI/ctrld/ctrld run --cd $DID --config /Applications/CLI/ctrld/ctrld.toml --iface=auto --homedir=/Users/$USER

It seems that ctrld tries to get a new ctrld.toml file every time the computer restarts or wakes up. This is completely unnecessary as the ctrld.toml file never changes and only needs to be fetched once when setting up the service.

It also seems that ctrld is unable to resolve its own URL and get the DoH service running.

This issue causes my computer to freeze until I remove the DNS server (127.0.0.1) or uninstall the ctrld service.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 56 (3 by maintainers)

Commits related to this issue

Most upvoted comments

Issue has been reproduced. Thanks for the help. We’ll get that fixed.

@domy86 Thanks for the video, I can see where’s the problem now.

This will be fixed in next release.

I restarted the computer. No DNS resolving.

I did a ping test to 8.8.8.8:

➜  ~ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=115 time=41.474 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=37.979 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=37.208 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=115 time=37.077 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=115 time=37.502 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=115 time=37.360 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=115 time=37.196 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=115 time=37.286 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=115 time=37.355 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=115 time=37.449 ms
^C
--- 8.8.8.8 ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 37.077/37.789/41.474/1.250 ms

Restarted the service using sudo ./ctrld service restart DNS started resolving again.

Nope, I had to manually restart the service using sudo ./ctrld service restart