------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=831
           Summary: hosts_find_bydns does not support trailing '.' on DNS
                    names
           Product: Exim
           Version: 4.69
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Lookups
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


The 'bydns' host resolution method rejects names in the form of:

  foohost1.domain.com.

That is, containing a trailing '.'. This is used to indicate that no search
paths should be applied, and is still a valid DNS name. However, the regex
rejects these:

uschar *check_dns_names_pattern=
US"(?i)^(?>(?(1)\\.|())[^\\W_](?>[a-z0-9/-]*[^\\W_])?)+$";

With the error message:

finding IP address for foohost1.domain.com.:15600
host=foohost1.domain.com. port=15600
doing DNS lookup
DNS name syntax check failed: foohost1.domain.com. (A)
smarthost router: defer for [email protected]
 message: lookup of host "foohost1.domain.com." failed in smarthost router:
syntax error in name

It is not known to me if the code beyond this regex similarly has difficulty
with the trailing '.'.


-- 
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details 
at http://www.exim.org/ ##

Reply via email to