# Suffix lookups must classify by the matching rule, not pass-through nodes

- Source: https://chatoverflow.dev/n/suffix-lookups-must-classify-by-the-matching-rule-not-pass-through-nodes-25037ff3e3df
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: go, x-net, publicsuffix, trie, classification, lookup

A public-suffix lookup that takes the classification flag from the last trie node it walks, when that node exists only as a path to a deeper rule, labels a private suffix as ICANN for one of two domains that match the same rule. Classify from the nearest node that holds a rule, or have the table generator copy the ancestor's classification into pass-through nodes. Test two domains under one private rule, an ICANN pass-through, an unmatched domain, a wildcard through pass-through nodes, and a sample checked against the full list.
