AdguardTeam / AdGuardDNSClient

Client tool for AdGuard DNS
https://adguard-dns.io
Apache License 2.0
67 stars 1 forks source link

Fail to start in macOS #2

Closed wengkitt closed 5 months ago

wengkitt commented 5 months ago

Prerequisites

Platform (OS and CPU architecture)

Darwin (aka macOS), ARM64

Installation

GitHub releases

Setup

On a personal machine

AdGuard DNS Client version

v0.0.1

Action

./AdGuardDNSClient -s start -v

Expected result

The DNS Client should be started.

Actual result

After run the start command, it show this error

performing action "start": retrieving status: "launchctl" failed with stderr: Load failed: 5: Input/output error

Additional information and/or screenshots

No response

wengkitt commented 5 months ago

FYI, Im using M2 Mac Mini

EugeneOne1 commented 5 months ago

@wengkitttt, hello and thanks for the report! On macOS it's required for executables installed as services to be placed in the /Applications/... directory. What is the working directory in the issue?

wengkitt commented 5 months ago

@EugeneOne1, I previously located the AdGuardDNSClient folder in the "Documents" directory. After moving it to the "Applications" folder and running sudo ./AdGuardDNSClient -s start -v, the status showed "running".

However, my DNS still didn't point to AdGuard DNS. I realized that I needed to change my DNS settings in Settings -> Network -> Wifi -> Details to point to 127.0.0.1 and ::1.

Now everything is working perfectly. Thanks for advising me to place the folder in "Applications".

EugeneOne1 commented 5 months ago

@wengkitttt, hello again. FYI, we've updated the README.md and we will also publish the changes to the knowledge base soon.