-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Double entry for localhost in /etc/hosts leads to 100% CPU usage #4216
Comments
Addendum: When i change my
everything is fine. |
Merge in DNS/adguard-home from 4216-hosts-explode to master Updates #4216. Squashed commit of the following: commit a6ed131 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Jan 27 19:11:23 2022 +0300 aghnet: imp docs commit 25cca06 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Jan 27 18:53:16 2022 +0300 aghnet: simpl hosts container
@l-x, hello and thanks for an exhaustive report! We've just pushed the latest |
@EugeneOne1 With the latest edge build I am no more able to trigger the error, seems to be fixed xD And thanks for the fast and friendly reply! |
@l-x, I suppose the issue may be closed. Feel free to reopen it if the problem reoccurs. |
Merge in DNS/adguard-home from 4216-hosts-explode to master Updates #4216. Squashed commit of the following: commit a6ed131 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Jan 27 19:11:23 2022 +0300 aghnet: imp docs commit 25cca06 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Jan 27 18:53:16 2022 +0300 aghnet: simpl hosts container
Merge in DNS/adguard-home from 4216-hosts-explode to master Updates AdguardTeam#4216. Squashed commit of the following: commit a6ed131 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Jan 27 19:11:23 2022 +0300 aghnet: imp docs commit 25cca06 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Jan 27 18:53:16 2022 +0300 aghnet: simpl hosts container
Issue Details
/etc/hosts
:Expected Behavior
dig localhost
executed on the AGH host returns without an errorActual Behavior
dig localhost
executed on the AGH host instantly leads to 100% cpu usage and the verbose log spammed with several hundred[debug] hosts container: handling the request
entries per second until it crashes silently a few minutes later.Additional Information
Removing one of the two entries for
localhost
in/etc/hosts
fixes the issue.I can reproduce the issue only for
localhost
entries, not for other domains.The text was updated successfully, but these errors were encountered: