Service Discovery with CoreDNS Plugins in Golang
Talkat KubeCon + CloudNativeCon North America 2020 Virtual · on Wednesday, 2020-11-18· at 15:50· Intrado Virtual Event Platform,·
summary
CoreDNS shows a concrete example: a Golang source-IP based service discovery plugin that inspects client IP and returns different A records (demo returns 1.1.1.1 or 8.8.8.8), implemented with three functions (init, setup, ServeDNS) and a ~20-line request handler. Plugins must be added to plugin.cfg and are statically compiled into CoreDNS (no runtime loading or reordering). Demo source is on GitHub, buildable via a Docker command; CoreDNS has 238 contributors, 24 maintainers, 30 public adopters and ~6600 stars.
AI-written summary · about
chapters (15)
- 0:00Intro
- 3:35CoreDNS Updates
- 6:14CoreDNS Community
- 8:29Community Bridge Program
- 9:55Google Summer of Code
- 13:10Service Discovery with DNS Virtual
- 15:30Resolving a Query
- 18:04Demo Plugin in Golang
- 19:03Demo Plugin - Functions
- 21:42Demo Plugin - Setup
- 23:40Demo Plugin - Serve DNS
- 24:45Demo Plugin - Corefile
- 25:11Demo Plugin - Build
- 27:34Demo Plugin - Source Code Virtual
- 28:07CoreDNS: Contribution








