Date: Mon, 31 Dec 2012 09:42:27 -0800 From: Devin Teske <devin.teske@fisglobal.com> To: Nathan Whitehorn <nwhitehorn@freebsd.org> Cc: J B <jb.1234abcd@gmail.com>, freebsd-sysinstall@FreeBSD.org Subject: Re: bin/172846: bsdinstall - setting hostname Message-ID: <B732CCEA-16AE-4BB5-85ED-A55FED1982A3@fisglobal.com> In-Reply-To: <50E1A032.6090901@freebsd.org> References: <201212311410.qBVEA1o6092589@freefall.freebsd.org> <50E1A032.6090901@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
sysinstall (and as the PR points out, xauth) used/uses gethostbyname(3) whi= ch could hang if DNS wasn't configured or was configured incorrectly. That'= s the nature of why sysinstall automatically populates hosts(5) with an ent= ry for the current hostname. I've been thinking a lot about whether this is still needed today. Most programs have switched away from gethostbyname(3) and are instead usin= g getaddrinfo(3) and/or getnameinfo(3), but I imagine that since they are f= rom the same family of functions, the replacements to gethostbyname(3) woul= d hang similarly on un/misconfigured DNS. My thinking is that=85 1. Like Nathan, I never configure our systems this way, but that's because = we always have working DNS and if a hang occurs, we know why 2. I believe that maintaining a hosts(5) entry for the local machine name c= ouldn't hurt (but only help those that may not fully grok why their system = is hanging ala illusive typo in resolv.conf etc.). --=20 Devin On Dec 31, 2012, at 6:24 AM, Nathan Whitehorn wrote: > On 12/31/12 09:10, J B wrote: >> The following reply was made to PR bin/172846; it has been noted by GNAT= S. >>=20 >> From: J B <jb.1234abcd@gmail.com> >> To: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org >> Cc:=20=20 >> Subject: Re: bin/172846: bsdinstall - setting hostname >> Date: Mon, 31 Dec 2012 15:02:06 +0100 >>=20 >> Related problem: >> misc/174859: Installation: /etc/hosts file >> jb >> _______________________________________________ >> freebsd-sysinstall@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >> To unsubscribe, send any mail to "freebsd-sysinstall-unsubscribe@freebsd= .org" >=20 > Is this something it actually makes sense to do? I personally would > never configure my systems this way -- having it done automatically > seems a mistake to me. > -Nathan > _______________________________________________ > freebsd-sysinstall@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall > To unsubscribe, send any mail to "freebsd-sysinstall-unsubscribe@freebsd.= org" _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B732CCEA-16AE-4BB5-85ED-A55FED1982A3>