[PATCH] Resolver: added support for domain names with a trailing dot
mdounin at mdounin.ru
Mon Jan 13 13:58:39 UTC 2014
On Fri, Jan 10, 2014 at 12:13:26PM -0800, Yichun Zhang (agentzh) wrote:
> On Fri, Jan 10, 2014 at 11:10 AM, Ruslan Ermilov wrote:
> > There's no such thing as domain names with a trailing dot,
> > with one exception of the root domain name.
> Well, they are just a fully qualified domain names.
Well, not really. There is no need for a trailing dot for a
domain name to be fully qualified. The "example.com" domain _is_
fully qualified. The trailing dot is just used by some software to
indicate fully qualified names.
It looks like it's something specifically mentioned by RFC 3986
The rightmost domain
label of a fully qualified domain name in DNS may be followed by a
single "." and should be if it is necessary to distinguish between
the complete domain name and some local domain.
So we probably should support it.
More information about the nginx-devel