You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lab: SRV records and a dangling SRV target with -srv #451
-srv looks up 48 built-in service names (_sip._tcp, _autodiscover._tcp, …) and, with SRV in -type, flags a service whose target host does not exist as a dangling-srv takeover candidate (#419). There is no lab for it, so a learner cannot try it without the network.
What to do
Add examples/labs/lab11-srv.zone (or the next free number) with:
two or three SRV records at names in the built-in -srv list, written <name> SRV <priority> <weight> <port> <host> as the lab zone syntax takes them;
one whose target host exists in the zone and one whose target does not (the dangling case).
Register it like the other labs (search the repo for lab9 to see every place), add a CLI test, and write the docs/labs.md section with the command (subenum -simulate-zone lab11 -srv -type A,SRV -format jsonl lab.example), what to look for (sources: ["srv"] and takeover_candidate: "dangling-srv"), and an answer key.
Done when
The lab runs with no network and shows both SRV services, one flagged dangling-srv
A CLI test checks it
go test ./... passes
Getting started
The -srv list: search internal/ for _autodiscover._tcp
examples/labs/ and docs/labs.md for the lab format
Fixed in 997e0d6: new built-in scenario lab11-srv with SRV records at _sip._tcp and _ldap._tcp (targets in the zone) and _autodiscover._tcp (target gone). subenum -simulate-zone lab11 -srv -type A,SRV -format jsonl lab.example reports all three with sources [srv] and flags autodiscover dangling-srv, with no network. It is registered like Lab 10 (help, README, flags table, unreleased.yml), and docs/labs.md has a Lab 11 section with an answer key. New CLI test TestE2ELabSRV checks it with and without -srv. Gate (gofmt, vet, golangci-lint v2.15.0, full suite) passes.
Activity
TMHSDigital commentedon Nov 29, 2026
Fixed in 997e0d6: new built-in scenario lab11-srv with SRV records at _sip._tcp and _ldap._tcp (targets in the zone) and _autodiscover._tcp (target gone).
subenum -simulate-zone lab11 -srv -type A,SRV -format jsonl lab.examplereports all three with sources [srv] and flags autodiscoverdangling-srv, with no network. It is registered like Lab 10 (help, README, flags table, unreleased.yml), and docs/labs.md has a Lab 11 section with an answer key. New CLI test TestE2ELabSRV checks it with and without -srv. Gate (gofmt, vet, golangci-lint v2.15.0, full suite) passes.