This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3425] gethostbyname() with RES_USE_INET6 breaks with CNAME records


------- Additional Comments From drepper at redhat dot com  2007-10-15 16:36 -------
I still think the servers should do something about this but I added a
work-around in libc.  The functions will now indicate that there was no error
but there is also no record.  This is the correct behavior for the resolver. 
For functions like getaddrinfo() this means we will now automatically get the
T_A lookup.

Before:

$ getent ahostsv6 smtprelay.t-online.de; echo $?
2

Now:

$ elf/ld.so --library-path .:resolv nss/getent ahostsv6 smtprelay.t-online.de;
echo $?
::ffff:194.25.134.34 STREAM smtprelay.t-online.de
::ffff:194.25.134.34 DGRAM  
::ffff:194.25.134.34 RAW    
::ffff:194.25.134.35 STREAM 
::ffff:194.25.134.35 DGRAM  
::ffff:194.25.134.35 RAW    
::ffff:194.25.134.92 STREAM 
::ffff:194.25.134.92 DGRAM  
::ffff:194.25.134.92 RAW    
::ffff:194.25.134.93 STREAM 
::ffff:194.25.134.93 DGRAM  
::ffff:194.25.134.93 RAW    
::ffff:194.25.134.94 STREAM 
::ffff:194.25.134.94 DGRAM  
::ffff:194.25.134.94 RAW    
::ffff:194.25.134.95 STREAM 
::ffff:194.25.134.95 DGRAM  
::ffff:194.25.134.95 RAW    
::ffff:194.25.134.98 STREAM 
::ffff:194.25.134.98 DGRAM  
::ffff:194.25.134.98 RAW    
::ffff:194.25.134.99 STREAM 
::ffff:194.25.134.99 DGRAM  
::ffff:194.25.134.99 RAW    
::ffff:194.25.134.28 STREAM 
::ffff:194.25.134.28 DGRAM  
::ffff:194.25.134.28 RAW    
::ffff:194.25.134.29 STREAM 
::ffff:194.25.134.29 DGRAM  
::ffff:194.25.134.29 RAW    
::ffff:194.25.134.30 STREAM 
::ffff:194.25.134.30 DGRAM  
::ffff:194.25.134.30 RAW    
::ffff:194.25.134.31 STREAM 
::ffff:194.25.134.31 DGRAM  
::ffff:194.25.134.31 RAW    
0


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3425

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]