Improve conformance with DNS behavior

This commit is contained in:
Dessa Simpson 2025-12-02 00:57:49 -07:00
parent b79df4bf1d
commit 07da2a1269
6 changed files with 96 additions and 50 deletions

27
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,27 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CoreDNS",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/../coredns/coredns",
"args": [],
"cwd": "${workspaceFolder}/testdata",
"env": {
"GOWORK": "${workspaceFolder}/../coredns/go.work"
},
"preLaunchTask": "Build CoreDNS",
"showLog": true
},
{
"name": "Attach to CoreDNS",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 2345,
"host": "127.0.0.1"
}
]
}

21
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build CoreDNS",
"type": "shell",
"command": "go generate && go build -gcflags='all=-N -l' -o coredns",
"options": {
"cwd": "${workspaceFolder}/../coredns",
"env": {
"GOWORK": "${workspaceFolder}/../coredns/go.work"
}
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$go"]
}
]
}