[GH-ISSUE #1815] MacOS udp 127.0.0.1:8053 response slow, easy to failed. #779

Closed
opened 2026-03-16 00:12:48 +03:00 by kerem · 1 comment
Owner

Originally created by @mokeyish on GitHub (Oct 31, 2022).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1815

Describe the bug
udp 127.0.0.1:8053 response slow, easy to failed (MacOS only).

To Reproduce
Steps to reproduce the behavior:

  1. listen: udp and tcp 0.0.0.0:8053
  2. dig @127.0.0.1 -p 8053 www.google.com (only addr: 127.0.0.1 slow and esay to failed)

while
dig @127.0.0.1 -p 8053 www.google.com +tcp
or
dig @lanip -p 8053 www.google.com
are very quick.

Expected behavior
Quick to response the dns query.

System:

  • OS: macOS
  • Architecture: x64
  • Version: 13
  • rustc version: rustc 1.66.0-nightly

Version:
Crate: server https://github.com/bluejekyll/trust-dns/blob/main/bin/Cargo.toml
Version: 0.22

Originally created by @mokeyish on GitHub (Oct 31, 2022). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1815 **Describe the bug** udp 127.0.0.1:8053 response slow, easy to failed (MacOS only). **To Reproduce** Steps to reproduce the behavior: 1. listen: udp and tcp 0.0.0.0:8053 2. `dig @127.0.0.1 -p 8053 www.google.com` (only addr: `127.0.0.1` slow and esay to failed) while `dig @127.0.0.1 -p 8053 www.google.com +tcp` or `dig @lanip -p 8053 www.google.com ` are very quick. **Expected behavior** Quick to response the dns query. **System:** - OS: macOS - Architecture: x64 - Version: 13 - rustc version: rustc 1.66.0-nightly **Version:** Crate: server https://github.com/bluejekyll/trust-dns/blob/main/bin/Cargo.toml Version: 0.22
kerem closed this issue 2026-03-16 00:12:54 +03:00
Author
Owner

@mokeyish commented on GitHub (Nov 1, 2022):

It slows due to I add a rule.

echo "rdr pass inet proto udp from any to any port 53 -> 127.0.0.1 port 8053" | sudo pfctl -ef -
<!-- gh-comment-id:1297860139 --> @mokeyish commented on GitHub (Nov 1, 2022): It slows due to I add a rule. ```shell echo "rdr pass inet proto udp from any to any port 53 -> 127.0.0.1 port 8053" | sudo pfctl -ef - ```
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/hickory-dns#779
No description provided.