[Bug 8065] FIrefox (and Opera): DNS look-up fails

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Mar 26 17:28:36 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=8065





--- Comment #17 from Kai Blin <kai.blin at gmail.com>  2008-03-26 17:28:36 ---
(In reply to comment #16)
> Well... wine could offer a bit of help
> here.  If it's a bad thing to do, maybe we
> could work with the distros to stop doing it?

X gets unhappy if it can't map the hostname to a valid address, so that's bad
if you're running a laptop without net connectivity.

I've managed to get julliard to agree that we could try and work around that in
Wine. I can try and look into that and maybe get it into 1.0.

The basic idea would be to check if "gethostbyname" returns a loopback address
when the hostname isn't localhost. If it does, we return a special 127. address
instead of 127.0.0.1 or whatever the distro will set.

Then, when we see that magic 127. address in bind, we look up the interface
that has the default route and bind to the IP of the interface with the default
route.

Alexandre hinted he'd accept that approach and I think that's about as clean a
fix as possible.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list