On 2025-01-13 12:25, Tomasz Pala via Postfix-users wrote:
> 
> OTOH https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.1:
> 
> <domain> ::= <subdomain> | " "
> <subdomain> ::= <label> | <subdomain> "." <label>
> <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]
> 
> - so strictly speaking the domain name also cannot end with a dot,
> and RFC 5321 is right not mentioning this.

The not-so-common idea of dot-ending domains comes from this:

https://datatracker.ietf.org/doc/html/rfc1035#section-3.1

"Since every domain name ends with the null label of
the root, a domain name is terminated by a length byte of zero."

but this is being said in a "in-wire", not application, context:

"Domain names *in messages* are expressed in terms of a sequence of
labels. Each label is represented as a one octet length field followed
by that number of octets."

To sum this up:
master file:    sub.domain. or sub
in wire msg:    sub.domain.
application:    sub.domain

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to