Skip to content

Lab: SRV records and a dangling SRV target with -srv #451

Done

Description

@TMHSDigital

Summary

-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

Activity

  1. added
    enhancement
    good first issue
    area: docs
    on Nov 29, 2026
  2. TMHSDigital commented on Nov 29, 2026

    @TMHSDigital
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsenhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions