-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to ignore local hosts file #1947
Comments
This is the intended behavior. Please explain why do you want to change it and why can't you edit the hosts file instead? |
I'd prefer to have possibility disable reading local hosts file hosts have higher priority of dns for local host and I can override some hosts for some purposes. plus I prefer local host domain name point to 127.0.0.1 instead of static or dynamic ip. |
in addition you broke another thing: |
I want to have a function like this too |
@ameshkov, yes, it must be definitely optional. I use four IP addresses (two ipv4 and two ipv6), but because of the hosts file, essentially only one ipv4 address works when I access the domain😒 |
Temporary solution - use AGH docker image |
I also interest for this topic. "Add an option to ignore local hosts file" |
Merge in DNS/adguard-home from 1947-hosts-opt to master Updates #1947. Updates #2829. Squashed commit of the following: commit d09285c Merge: cff8c4c 7c6557b Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 18:23:20 2021 +0300 Merge branch 'master' into 1947-hosts-opt commit cff8c4c Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:46:19 2021 +0300 home: fix help commit 1fa01d5 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:40:48 2021 +0300 home: fix option order commit 9d83cb6 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:28:30 2021 +0300 aghnet: add important todo commit 7f1386f Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:17:17 2021 +0300 all: correct naming commit cbe2b2e Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 15:55:46 2021 +0300 all: mv functionality from util commit e82ad53 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 15:41:35 2021 +0300 home: imp code, docs commit 9058977 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 15:02:34 2021 +0300 home: add an option to disable autohosts
The new option |
I'd love to, but where can I get x64 linux binary for tests? |
Here you can find the instructions for using unstable versions and also links for the precompiled binaries. |
Merge in DNS/adguard-home from 2956-fix-flag to master Closes #2956. Updates #1947. Squashed commit of the following: commit ffb98f7 Merge: 800d67d 7be2fc3 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Apr 14 19:01:34 2021 +0300 Merge branch 'master' into 2956-fix-flag commit 800d67d Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Apr 14 18:54:26 2021 +0300 home: fix clients disabling
@AlexHighTower, hi, just a heads-up, we've messed up the feature in the initial snapshot and beta 2, so you probably shouldn't install it. Any |
We'll close the issue for now. Please feel free to open new issues if the feature will cause any problems. |
Merge in DNS/adguard-home from 1947-hosts-opt to master Updates AdguardTeam#1947. Updates AdguardTeam#2829. Squashed commit of the following: commit d09285c Merge: cff8c4c 7c6557b Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 18:23:20 2021 +0300 Merge branch 'master' into 1947-hosts-opt commit cff8c4c Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:46:19 2021 +0300 home: fix help commit 1fa01d5 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:40:48 2021 +0300 home: fix option order commit 9d83cb6 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:28:30 2021 +0300 aghnet: add important todo commit 7f1386f Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 17:17:17 2021 +0300 all: correct naming commit cbe2b2e Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 15:55:46 2021 +0300 all: mv functionality from util commit e82ad53 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 15:41:35 2021 +0300 home: imp code, docs commit 9058977 Author: Eugene Burkov <e.burkov@adguard.com> Date: Mon Apr 12 15:02:34 2021 +0300 home: add an option to disable autohosts
Merge in DNS/adguard-home from 2956-fix-flag to master Closes AdguardTeam#2956. Updates AdguardTeam#1947. Squashed commit of the following: commit ffb98f7 Merge: 800d67d 7be2fc3 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Apr 14 19:01:34 2021 +0300 Merge branch 'master' into 2956-fix-flag commit 800d67d Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Apr 14 18:54:26 2021 +0300 home: fix clients disabling
--no-etc-hosts is depricated now |
source: https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#configuration-file |
Hi, Should I log a seperate issue or keep it contained within this one? Thanks! Edit: Just for clarity I'm not an idiot - I have stopped the AdGuardHome process before changing the line which isn't as written above, it's in the yaml file as thus:
I have a log file with |
Sorry ignore my update here, I can see that #6610 exists. |
Hello,
using latest 0.103.2 I found that it parse local /etc/hosts file and return addresses from it and return to clients wrong IP.
e.g., hosts have record
127.0.0.1 domain.name
and when client request domain.name agh return 127.0.0.1 instead of forwarding query to upstream...
I need to disable reading local hosts file
The text was updated successfully, but these errors were encountered: