Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: dev

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

 

 

exim dev RSS feed   Index | Next | Previous | View Threaded


eandres at google

Mar 25, 2009, 8:36 AM

Post #1 of 1 (365 views)
Permalink
[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[at]exim.org
ReportedBy: eandres[at]google.com
CC: exim-dev[at]exim.org, eandres[at]google.com


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[at]google.com
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/ ##

exim dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.