From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Owens Newsgroups: gmane.emacs.help Subject: Re: OS X (or other OS's): how to get a fully-qualified domain name? Date: Tue, 27 Jul 2004 20:30:01 +0000 (UTC) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <41058F9A.90905@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090960234 19636 80.91.224.253 (27 Jul 2004 20:30:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 20:30:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 22:30:22 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpYab-0004yA-00 for ; Tue, 27 Jul 2004 22:30:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpYdh-0004pP-HE for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2004 16:33:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BpYda-0004pA-58 for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:33:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BpYdY-0004oy-LC for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:33:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpYdY-0004ov-HP for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:33:24 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BpYaP-0003TI-42 for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:30:09 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BpYaN-0006HY-00 for ; Tue, 27 Jul 2004 22:30:08 +0200 Original-Received: from fanta.ece.ucdavis.edu ([169.237.74.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 22:30:07 +0200 Original-Received: from john_owens by fanta.ece.ucdavis.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 22:30:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 169.237.74.29 (Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19843 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19843 Stefan Monnier iro.umontreal.ca> writes: > > This does bring up the larger point, however, that there might be > > circumstances where emacs DOES need to know its fully qualified > > domain name, and there does not seem to be a way to get it, > > which is unfortunate. > > But this is *very* rare. And for good reasons: it's not really clear what > it means. A machine can have: > - no fully qualified name (if you're not connected to the net). > - 1 FQDN > - several different FQDN (using only one IP address or using several IP > addresses via a single network interface, or over several network > interfaces, ...). Understood; first, I can't think of a circumstance where emacs might *really* need to know this. But in case it did, it would be nice if it would at least make a best effort. If it has none, well, it fails. If it has one or more, it returns one valid one. I'm just thinking as a programmer, if I wanted to use a FQDN name, having emacs at least make a good effort toward finding one would be desirable. And in OS X's case, it isn't making a particularly good effort. None of this makes any difference for the problem I'm looking at; the suggestion to just use the work hostname and to hardcode it will work just fine for what I want. I'm more interested (at this point) in "what should system-name return in the ideal case"; for me, a best-effort toward a FQDN would be desirable. JDO