dnsproxy: Fix can't resolv hostname
authorYu A Wang <yu.a.wang@intel.com>
Tue, 11 Oct 2011 09:46:00 +0000 (09:46 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 11 Oct 2011 10:03:59 +0000 (12:03 +0200)
commit4b100f588b7078a85e7ede97dfc0de5ea9370068
tree0378b0a0b8329fe63c9d6000b5f96870b7621351
parent637084988c16f9ebbe35040a867a50c5fe24eb9f
dnsproxy: Fix can't resolv hostname

When we resolv hostname, we will append the domain name then we may
get question section mismatch error. After we get the DNS reply
we can remove the domain name again. This works well with one host
with only a A record, it may failed when the reply with many cnames
or additional records due to message compression error. But in a
local network we only resolv hostname will not meet these issues.

Modified by Julien Massot according to Samuel's comments.
src/dnsproxy.c