IPv6, DDI & Campus NAC · dns_traceroute_igmp.frasm · 11 framesFrameAssembly v3.2.2

Simulate DNS NXDOMAIN / SERVFAIL, Traceroute TTL Hops & IGMP Snooping

Reproducing negative DNS responses (NXDOMAIN / SERVFAIL), multi-hop ttl 1 -> icmp timeexceeded traceroute ladders, and switch IGMP Snooping group joins/leaves normally takes broken upstream zones, three routed hops, and a live multicast receiver.

Protocols in capture: vlandnsudpicmpigmp
Raw .md
Problem

The Catch

DDI monitoring pipelines and SIEM DNS threat-hunting rules often get tested exclusively against happy NOERROR (rcode 0) lookups—missing broken DNSSEC SERVFAIL (rcode 2) storms or DGA NXDOMAIN (rcode 3) bursts until an outage hits.

Likewise, verifying campus switch IGMP Snooping and multicast pruning on VLAN 50 requires an RFC 2236 General Query to 224.0.0.1 (01:00:5e:00:00:01), an RFC 3376 IGMPv3 Membership Report (0x22), and an IGMPv2 Fast Leave (0x17)—all with valid IPv4 Protocol 2 checksums at ttl 1.

Setup & Topology

Branch VLAN 50 DNS Triage + 2-Hop UDP Traceroute + IPTV Multicast Join/Leave

Branch Client (10.50.10.25) -> Hop-1 Router (10.50.10.1) -> Core DNS (10.50.0.53) & Multicast (224.0.0.1 / 239.50.1.100)

Eleven VLAN-50 packets validate three everyday NetOps workflows: (1) DNS rcode 3 (NXDOMAIN) for a retired hostname plus rcode 2 (SERVFAIL) for a broken upstream zone; (2) classic Unix UDP traceroute probes (dstport 33434/33435) at ttl 1 (answered by Hop-1 icmp timeexceeded) and ttl 2 (answered by destination icmp destunreach code 3 Port Unreachable); and (3) router igmp v2 query followed by receiver igmp v3 report and igmp v2 leave for 239.50.1.100.

Adapt It for Your Network

  1. Swap qname and rcode (2 SERVFAIL, 3 NXDOMAIN, 5 REFUSED) to match your DNS alerting thresholds.
  2. Add extra hop host blocks (ttl 1, ttl 2, ttl 3) to model longer traceroute topologies.
  3. Replay the IGMP frames into a test VLAN to confirm switch IGMP Snooping prunes 239.50.1.100 after igmp v2 leave.

.frasm -> .pcap

Preview frames inline or open in Playground ->

Compiles 11 VLAN-50 frames covering DNS NXDOMAIN + SERVFAIL, a 2-hop TTL-expiry UDP traceroute, and IGMPv2/v3 Query/Report/Leave.

dns_traceroute_igmp.frasm
Open in Playground
host branch_client { ip 10.50.10.25 mac 00:1b:21:50:10:25 }
host hop1_router { ip 10.50.10.1 mac 00:1c:73:50:10:01 }
host core_dns_vip { ip 10.50.0.53 mac 00:50:56:50:00:53 }
host all_hosts_mc { ip 224.0.0.1 }
host iptv_group_mc { ip 239.50.1.100 }
flow dns_failures_and_traceroute(client, hop1, dns_srv) {
// 1. Negative DNS responses: RCODE 3 (NXDOMAIN) & RCODE 2 (SERVFAIL)
client -> dns_srv vlan 50 dns query txid 0x9101 qname "retired-db.corp.example" qtype "A" wait 2ms
client <- dns_srv vlan 50 dns response txid 0x9101 qname "retired-db.corp.example" qtype "A" rcode 3 wait 3ms
client -> dns_srv vlan 50 dns query txid 0x9102 qname "broken-dnssec.partner.example" qtype "A" wait 2ms
client <- dns_srv vlan 50 dns response txid 0x9102 qname "broken-dnssec.partner.example" qtype "A" rcode 2 wait 4ms
// 2. 2-hop UDP traceroute: TTL=1 expires at hop1 -> TTL=2 reaches core_dns_vip
client -> dns_srv vlan 50 ttl 1 udp srcport 53100 dstport 33434 payload "TRACEROUTE_HOP_1" wait 2ms
hop1 -> client vlan 50 ttl 64 icmp timeexceeded code 0 wait 2ms
client -> dns_srv vlan 50 ttl 2 udp srcport 53101 dstport 33435 payload "TRACEROUTE_HOP_2" wait 2ms
client <- dns_srv vlan 50 ttl 63 icmp destunreach code 3 wait 3ms
}
flow igmp_snooping_lifecycle(client, rtr, all_mc, group_mc) {
// 3. Switch IGMP Snooping: v2 General Query -> v3 Join Report -> v2 Fast Leave
rtr -> all_mc vlan 50 ttl 1 igmp v2 query group 0.0.0.0 maxresp 100 wait 3ms
client -> group_mc vlan 50 ttl 1 igmp v3 report group 239.50.1.100 wait 10ms
client -> group_mc vlan 50 ttl 1 igmp v2 leave group 239.50.1.100 wait 2ms
}
compile {
dns_failures_and_traceroute(branch_client, hop1_router, core_dns_vip)
igmp_snooping_lifecycle(branch_client, hop1_router, all_hosts_mc, iptv_group_mc)
}
Local CLI Build, Inspect & Replay Commands
# 1. Preview all 11 DNS failure, traceroute TTL, and IGMP multicast frames
frameassembly show dns_traceroute_igmp.frasm

# 2. Compile to .pcap and inspect DNS rcode, ICMP Time Exceeded, and IGMP groups
frameassembly dns_traceroute_igmp.frasm dns_traceroute_igmp.pcap
tshark -r dns_traceroute_igmp.pcap -Y "dns || icmp || igmp"

# 3. Replay onto a lab trunk to test switch IGMP Snooping & SIEM DNS alerts
sudo tcpreplay -i eth0 dns_traceroute_igmp.pcap
Browser Tab -> Local Terminal & VS Code

Keep dns_traceroute_igmp.frasm in Git and build .pcap in under 1ms

Single rootless binary + VS Code extension with live squiggles, quick-fixes, and side-by-side packet ladders ready for Wireshark.

Grab CLI + VS Code ->

Related Examples

All 81 Protocols ->