Binary Compilation
To run CoreDNS-GSLB, you must build a custom CoreDNS binary that compiles the gslb plugin.
Step 1: Update plugin configuration
- Clone or download the CoreDNS source code.
- Edit the file
plugin.cfginside the CoreDNS source directory. - Register the
gslbplugin by adding the following line. It is recommended to place it right beforefile:fileto ensure proper routing priority:
Step 2: Compile the Binary
Run code generation and compilation commands:
This compiles a coredns executable with the GSLB plugin compiled in. You can run and configure it using standard Corefiles.