[PATCH] Resolver: added support for domain names with a trailing dot
ru at nginx.com
Tue Jan 14 12:30:23 UTC 2014
On Mon, Jan 13, 2014 at 05:58:39PM +0400, Maxim Dounin wrote:
> On Fri, Jan 10, 2014 at 12:13:26PM -0800, Yichun Zhang (agentzh) wrote:
> > Hello!
> > 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
> though, http://tools.ietf.org/html/rfc3986#section-3.2.2:
> 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.
I've committed the patch.
More information about the nginx-devel