~/talk

Implement simple local DNS server with BPF

Talkat Linux Plumbers Conference 2025 · 2025-12-11..12-13· [networking]
links:none on file
slides:none on file

Claims a working BPF-based local DNS responder that parses UDP DNS queries and rewrites packets in-place, implemented as XDP and TC BPF programs. It swaps MAC/IP/UDP fields, appends answer RR(s) from a BPF map, recalculates checksums and returns the packet as a response without userland. Demo uses a five-host list (Facebook/Google/etc.), returns multiple A/AAAA records (Facebook returned two IPs) and shows lower latency across regions. Limitations: no TCP or DoT, simple stateless records only; useful for hosts replacement and DDoS mitigation.

AI-written summary · about

  1. 0:00Introduction to DNS with BPF
  2. 1:11BPF use cases at Meta
  3. 2:16DNS packet structure basics
  4. 5:51BPF programs for DNS interception
  5. 7:23Packet modifications for DNS replies
  6. 10:37Storing DNS records in BPF
  7. 11:24Use cases for DNS-BPF
  8. 12:31XDP vs TC for DNS resolution
  9. 15:48Live demo setup
  10. 16:26Running TC program demo
  11. 18:22Local DNS resolution results
  12. 19:48XDP program demo
  13. 20:58Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.