🚀
🚀
🚀
🚀
DNSControl
Search
⌃K
Introduction to DNSControl
Getting Started
Overview
Examples
Migrating zones to DNSControl
TypeScript autocomplete and type checking
Language Reference
JavaScript DSL
Top Level Functions
Domain Modifiers
Record Modifiers
Why CNAME/MX/NS targets require a "dot"
Service Providers
Providers
Commands
creds.json
check-creds
get-certs
get-zones
Advanced features
CI/CD example for GitLab
CLI variables
Nameservers and Delegations
Notifications
Useful code tricks
Developer info
Style Guide
DNSControl is an opinionated system
Writing new DNS providers
Creating new DNS Resource Types (rtypes)
Integration Tests
Unit Testing DNS Data
Bug Triage Process
Bring-Your-Own-Secrets for automated testing
Debugging with dlv
ALIAS Records
TXT record testing
Release
How to build and ship a release
Changelog v3.16.0
GitHub releases
Powered By GitBook

Debugging with dlv

Test a particular function:
dlv test github.com/StackExchange/dnscontrol/v3/pkg/diff2 -- -test.run Test_analyzeByRecordSet
^^^^^^^^^
Assumes you are in the pkg/diff2 directory.
Debug the integration tests:
dlv test github.com/StackExchange/dnscontrol/v3/integrationTest -- -test.v -test.run ^TestDNSProviders -verbose -provider NAMEDOTCOM -start 1 -end 1 -diff2
Developer info - Previous
Bring-Your-Own-Secrets for automated testing
Next - Developer info
ALIAS Records
Last modified 2mo ago
Copy link
Edit on GitHub