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
Top-level domain names are rejected erroneously by both hostname() and domain() #442
Partly fixed: hostname('yu.', rfc_1034=True) (a single label with the RFC 1034 trailing dot) is now accepted (#462). What remains is domain('yu') / domain('ie.'): domain() requires a dotted name with a TLD by design, whereas a bare single label is covered by hostname(..., maybe_simple=True). Leaving this open for a maintainer decision on whether domain() should accept single labels.
Decision: domain() keeps requiring a dotted name with a TLD, so domain('yu') and domain('ie.') stay invalid by design. The hostname half of this report is fixed (#462): hostname('yu.', rfc_1034=True) is accepted, and single-label names are validated with hostname(..., maybe_simple=True). Thanks for the detailed report!
Activity
Accept trailing dot on simple hostnames with rfc_1034
nandgator commentedon Oct 10, 2026
Partly fixed:
hostname('yu.', rfc_1034=True)(a single label with the RFC 1034 trailing dot) is now accepted (#462). What remains isdomain('yu')/domain('ie.'):domain()requires a dotted name with a TLD by design, whereas a bare single label is covered byhostname(..., maybe_simple=True). Leaving this open for a maintainer decision on whetherdomain()should accept single labels.nandgator commentedon Oct 10, 2026
Decision:
domain()keeps requiring a dotted name with a TLD, sodomain('yu')anddomain('ie.')stay invalid by design. The hostname half of this report is fixed (#462):hostname('yu.', rfc_1034=True)is accepted, and single-label names are validated withhostname(..., maybe_simple=True). Thanks for the detailed report!