Date: Sun, 22 Jun 2014 16:15:56 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-doc@FreeBSD.org Subject: [Bug 189268] 3 getaddrinfo(3) - hostanme="localhost", but it returns IN_ADDR_ANY (0.0.0.0) Message-ID: <bug-189268-9-zmJ8Uw8UfX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-189268-9@https.bugs.freebsd.org/bugzilla/> References: <bug-189268-9@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189268 --- Comment #6 from dreamcat4@gmail.com --- (In reply to Allan Jude from comment #5) > So do you still think there is an issue here? or can I close this PR? > Allan Jude Yeah I believe this one should stay open because it was discovered as a bug when such a query was being executed by a real piece of software (virtualbox). Rationale: The virtualbox source code running this query was multi platform. If their developers can only test their work on one platform (for example linux), and result the other platform works correctly... they kindda need to be able to assume it work's gonna the same way on FreeBSD too. Problem Recap. In short. The problem is that: running a "localhost" DNS query should never be returning "0.0.0.0" anywhere in it's results list. As "0.0.0.0" != "localhost". This bug occurs if the protocol family being requested is set to "PF_UNSPEC" (unspecified). OR "PF_INET6". With the default "/etc/hosts" file (with a line that says "::1 localhost"). The bug is more likely to occur on new "IPV4+IPV6" code. The bug may not be evident on older IP4-only code, if the DNS query's "protocol family" struct field was set to "PF_INET4". -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-189268-9-zmJ8Uw8UfX>