Skip to content
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

Huge number of DNS requests (on startup) #4258

Open
PerfectDark99 opened this issue Aug 15, 2022 · 0 comments
Open

Huge number of DNS requests (on startup) #4258

PerfectDark99 opened this issue Aug 15, 2022 · 0 comments

Comments

@PerfectDark99
Copy link

Description

On startup I was getting DNS resolving errors:

java.io.IOException: Timed out while trying to resolve XYZ.all.mainnet.ethdisco.net./TXT, id=54854
at org.xbill.DNS.Resolver.send(Resolver.java:170)
at org.apache.tuweni.discovery.DNSResolver.resolveRecordRaw(DNSResolver.kt:155)
at org.apache.tuweni.discovery.DNSResolver.resolveRecord(DNSResolver.kt:73)
at org.apache.tuweni.discovery.DNSResolver.internalVisit(DNSResolver.kt:175)
at org.apache.tuweni.discovery.DNSResolver.internalVisit(DNSResolver.kt:184)
at org.apache.tuweni.discovery.DNSResolver.internalVisit(DNSResolver.kt:184)]
at org.apache.tuweni.discovery.DNSResolver.visitTree(DNSResolver.kt:135)
at org.apache.tuweni.discovery.DNSResolver.visitTree(DNSResolver.kt:111)
at org.apache.tuweni.discovery.DNSResolver.collectAll(DNSResolver.kt:95)
at org.apache.tuweni.discovery.DNSTimerTask.run(DNSDaemon.kt:89)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)

I did some checking an realized that my DNS server (pihole) rate limited my staking machine. The default rate limit is 1000 DNS request per minute. Of course I can solve the issue by simply upping/removing the limit but in situations where this is not possible the large amounts of DNS requests could pose a problem? Like temporary or permanent blocking?

I'm not aware of the inner workings as in why this many DNS request are needed and hence if anything can be done about it without affecting proper function. but better probably to think if this many requests are really needed?

Mostly I'm posting this here so that in case anyone else has the same issue, they can find a solution quickly.

Acceptance Criteria

I think a simple option to reduce DNS request might be a possible solution in cases where this poses an issue.

Steps to Reproduce (Bug)

  1. Limit DNS request per second per host on DNS server
  2. Start Besu

Versions (Add all that apply)

  • Software version: 22.7.0
  • Java version: openjdk 17.0.4 2022-07-19
  • OS Name & Version: Ubuntu 20.04.4 LTS
  • Kernel Version: 5.4.0-124-generic
  • Virtual Machine software & version: bare-metal installation
  • Docker Version: n/a
  • Cloud VM, type, size: n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant