[exim-dev] [Bug 831] New: hosts_find_bydns does not support …

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Eric Andresen
Dátum:  
Címzett: exim-dev
Új témák: [exim-dev] [Bug 831] hosts_find_bydns does not support trailing '.' on DNS names
Tárgy: [exim-dev] [Bug 831] New: hosts_find_bydns does not support trailing '.' on DNS names
------- 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: nigel@???
        ReportedBy: eandres@???
                CC: exim-dev@???, eandres@???



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 quux@???
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