[Bug 831] New: hosts_find_bydns does not support trailing '.' on DNS names

View: New views
2 Messages — Rating Filter:   Alert me  

[Bug 831] New: hosts_find_bydns does not support trailing '.' on DNS names

by Bugzilla from eandres@google.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

------- 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

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

[Bug 831] hosts_find_bydns does not support trailing '.' on DNS names

by Bugzilla from nigel@exim.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

http://bugs.exim.org/show_bug.cgi?id=831

Nigel Metheringham <nigel@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Nigel Metheringham <nigel@...>  2009-10-20 14:15:12 ---
Not convinced this is actually a bug.  


--
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/ ##