hashicorp/run-dns-server
Guide for running a local containerized DNS server. Use this when asked to run an acceptance test or to run a test with the prefix `TestAcc`.
npx skills add https://github.com/hashicorp/terraform-provider-dns --skill run-dns-server
Before running any acceptance tests for the DNS provider, start a DNS server:
dig @127.0.0.1 -p 15353 +short ns.example.com
Expected command output is "127.0.0.1."
docker run --privileged --cgroupns=host -d --tmpfs /tmp --tmpfs /run \
-v /sys/fs/cgroup:/sys/fs/cgroup:rw \
-v /etc/localtime:/etc/localtime:ro \
-v $PWD/internal/provider/testdata/named.conf.kerberos:/etc/named.conf:ro \
-p 127.0.0.1:15353:53 \
-p 127.0.0.1:15353:53/udp \
--rm --name ns --hostname ns.example.com ns
dig @127.0.0.1 -p 15353 +short ns.example.com
Expected command output is "127.0.0.1." Display no output unless there is a problem.
Add these environment variables to all go test commands for acceptance tests in the DNS provider:
DNS_UPDATE_SERVER=127.0.0.1DNS_UPDATE_PORT=15353Take hashicorp/run-dns-server from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference docker.
Without those the skill loads but fails at the first command.