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
An underscore in the last domain label is accepted #484
domain("foo.ba_r") returns True, and domain("example.co_uk") does too. hostname("foo.ba_r") and email("a@foo.ba_r") return True as well.
An underscore belongs in a service label, and those already require rfc_2782. example_.com is rejected until that flag is set. The last label still allows _ with the flag off.
Fixed by #485: domain() no longer accepts an underscore in the last domain label (an underscore is only allowed in service-record labels with rfc_2782). Thanks for the report and the fix!
Activity
nandgator commentedon Oct 10, 2026
Fixed by #485:
domain()no longer accepts an underscore in the last domain label (an underscore is only allowed in service-record labels withrfc_2782). Thanks for the report and the fix!