[uClibc 0000473]: DNS sluggish on queries of names ending with '.'

bugs at busybox.net bugs at busybox.net
Tue Jun 3 19:05:18 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=473 
====================================================================== 
Reported By:                csapuntz
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   473
Category:                   Networking Support
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             10-05-2005 15:38 PDT
Last Modified:              06-03-2008 12:05 PDT
====================================================================== 
Summary:                    DNS sluggish on queries of names ending with '.'
Description: 
Great work on uClibc! Here's a small issue I ran into:

The DNS resolver generates invalid requests when lookups of names ending
with
'.' are made and searchdomains are present. 

What happens. Say we look up foo.com. and searchdomains is localdomain. 

First the resolver tries:
foo.com. AAAA is looked up ---> no record found

Then it tries:
foo.com..localdomain AAAA       --> notice the two dots

At this point an invalid packet is generated and BIND drops it and the
resolver pauses waiting for a response.

There are two bugs here: appending a search path to a DNS name ending in
'.' and trying to DNS encode a name with an empty component. 

The patch attached fixes both bugs.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 06-03-08 12:05  
---------------------------------------------------------------------- 
fixed in rev 22206. Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-05-05 15:38  csapuntz       New Issue                                    
10-05-05 15:38  csapuntz       Status                   new => assigned     
10-05-05 15:38  csapuntz       Assigned To               => uClibc          
10-05-05 15:38  csapuntz       File Added: resolv.c.diff                    
10-05-05 15:39  csapuntz       Issue Monitored: csapuntz                    
06-03-08 12:05  vda            Status                   assigned => closed  
06-03-08 12:05  vda            Note Added: 0008094                          
======================================================================




More information about the uClibc-cvs mailing list