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
- cmd/ctrld: response to OS service manager earlier When startup, ctrld waits for network up before calling s.Run to starts its logic. However, if network is down on startup, ctrld will hang on waiting... — committed to Control-D-Inc/ctrld by cuonglm a year ago
- all: some improvements for better troubleshooting - Include version/OS information when logging - Make time field human readable in log file - Force root privilege when running status command on d... — committed to Control-D-Inc/ctrld by cuonglm a year ago
- all: fix os resolver hangs when all server failed For os resolver, ctrld queries against all servers concurrently, and get the first success result back. However, if all server failed, the result cha... — committed to Control-D-Inc/ctrld by cuonglm a year ago
- all: fix bug that causes ctrld stop working if bootstrap failed The bootstrap process has two issues that can make ctrld stop resolving after restarting machine host. ctrld uses bootstrap DNS and os... — committed to Control-D-Inc/ctrld by cuonglm a year ago
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:
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