[GH-ISSUE #13] FR: Rate-limit error logs #12

Open
opened 2026-03-02 23:35:56 +03:00 by kerem · 2 comments
Owner

Originally created by @dseomn on GitHub (Jun 14, 2024).
Original GitHub issue: https://github.com/albertito/dnss/issues/13

Originally assigned to: @albertito on GitHub.

Hi,

My connection to my ISP recently went down for a short time, and dnss flooded the system logs with connect: network is unreachable errors. Would it be possible to add a rate limit to the logs so that, e.g., the same log message can't be logged more than once per second?

Originally created by @dseomn on GitHub (Jun 14, 2024). Original GitHub issue: https://github.com/albertito/dnss/issues/13 Originally assigned to: @albertito on GitHub. Hi, My connection to my ISP recently went down for a short time, and dnss flooded the system logs with `connect: network is unreachable` errors. Would it be possible to add a rate limit to the logs so that, e.g., the same log message can't be logged more than once per second?
Author
Owner

@albertito commented on GitHub (Jul 7, 2024):

Hi! Thank you for opening this, sorry it took me so long to triage it.

This seems like a very reasonable feature request, will leave this open to track it :)

Do you have an example of the error messages you got overloaded with? So I know which ones to prioritize. No worries if not, I can simulate this if needed. Thank you!

<!-- gh-comment-id:2212399100 --> @albertito commented on GitHub (Jul 7, 2024): Hi! Thank you for opening this, sorry it took me so long to triage it. This seems like a very reasonable feature request, will leave this open to track it :) Do you have an example of the error messages you got overloaded with? So I know which ones to prioritize. No worries if not, I can simulate this if needed. Thank you!
Author
Owner

@dseomn commented on GitHub (Jul 7, 2024):

Here are the messages that were filling my logs. The first two had variations with different IP addresses. I'm slightly confused by the last two because dnss is running with --fallback_upstream=[::1]:14653. /etc/resolv.conf has nameserver 127.0.0.53, but I didn't think dnss used that.

server.go:105      resolver query error: POST failed: Post "https://dns.google/dns-query": dial tcp 8.8.4.4:443: connect: network is unreachable
server.go:106      dnsserver Handler: error: POST failed: Post \"https://dns.google/dns-query\": dial tcp 8.8.4.4:443: connect: network is unreachable
server.go:105      resolver query error: POST failed: Post "https://dns.google/dns-query": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
server.go:106      dnsserver Handler: error: POST failed: Post \"https://dns.google/dns-query\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
server.go:105      resolver query error: POST failed: Post "https://dns.google/dns-query": dial tcp: lookup dns.google on 127.0.0.53:53: server misbehaving
server.go:106      dnsserver Handler: error: POST failed: Post \"https://dns.google/dns-query\": dial tcp: lookup dns.google on 127.0.0.53:53: server misbehaving
<!-- gh-comment-id:2212497880 --> @dseomn commented on GitHub (Jul 7, 2024): Here are the messages that were filling my logs. The first two had variations with different IP addresses. I'm slightly confused by the last two because dnss is running with `--fallback_upstream=[::1]:14653`. /etc/resolv.conf has `nameserver 127.0.0.53`, but I didn't think dnss used that. ``` server.go:105 resolver query error: POST failed: Post "https://dns.google/dns-query": dial tcp 8.8.4.4:443: connect: network is unreachable server.go:106 dnsserver Handler: error: POST failed: Post \"https://dns.google/dns-query\": dial tcp 8.8.4.4:443: connect: network is unreachable server.go:105 resolver query error: POST failed: Post "https://dns.google/dns-query": context deadline exceeded (Client.Timeout exceeded while awaiting headers) server.go:106 dnsserver Handler: error: POST failed: Post \"https://dns.google/dns-query\": context deadline exceeded (Client.Timeout exceeded while awaiting headers) server.go:105 resolver query error: POST failed: Post "https://dns.google/dns-query": dial tcp: lookup dns.google on 127.0.0.53:53: server misbehaving server.go:106 dnsserver Handler: error: POST failed: Post \"https://dns.google/dns-query\": dial tcp: lookup dns.google on 127.0.0.53:53: server misbehaving ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dnss#12
No description provided.