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:49:19 +0000 (UTC) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <41058F9A.90905@yahoo.com> <4106B174.7010404@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 1090961402 22716 80.91.224.253 (27 Jul 2004 20:50:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 20:50:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 22:49:52 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 1BpYtT-0006oe-00 for ; Tue, 27 Jul 2004 22:49:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpYwZ-00011O-6k for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2004 16:53:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BpYwP-00011I-VS for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:52:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BpYwO-000107-Fi for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:52:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpYwO-0000zw-Ch for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:52:52 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BpYt0-0006Dv-OX for help-gnu-emacs@gnu.org; Tue, 27 Jul 2004 16:49:23 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BpYt0-0006k9-00 for ; Tue, 27 Jul 2004 22:49:22 +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:49:22 +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:49:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 14 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:19844 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19844 Kevin Rodgers yahoo.com> writes: > Emacs does try to get the FQDN from the system; see the init_system_name > function in src/sysdep.c. It's calling gethostname, and gethostname on OS X just doesn't seem to try particularly hard. From a brief experiment, it appears to give a FQDN when I'm on a static IP, but once my IP becomes a dynamic one (through a wireless router), it reverts to the non-FQDN name of the machine. Ah well. Does not appear to be an emacs problem but instead a OS X problem. (sysctl does not do any better.) JDO