Re: Setting default hostname to localhost

2001-01-18 Thread mouss
At 15:24 17/01/01 -0500, Robert Watson wrote: >On the contrary, there are many applications that expect the results of a >gethostname() to resolve, and point to the local machine. It's arguable >that these applications are broken, but there are enough of them to raise >consideration. They includ

Re: Setting default hostname to localhost

2001-01-17 Thread Robert Watson
On Wed, 17 Jan 2001, mouss wrote: > At 21:16 16/01/01 -0500, Robert Watson wrote: > >The nice thing about "localhost" is that it already appears in > >/etc/hosts, and is a relatively reserved name, so unlikely to conflict too > >much based on resolution order. I.e., amnesiac.res.cmu.edu is not

Re: Setting default hostname to localhost

2001-01-17 Thread mouss
At 21:16 16/01/01 -0500, Robert Watson wrote: >The nice thing about "localhost" is that it already appears in >/etc/hosts, and is a relatively reserved name, so unlikely to conflict too >much based on resolution order. I.e., amnesiac.res.cmu.edu is not an >unlikely name. sure, but I consider tha

Re: Setting default hostname to localhost

2001-01-16 Thread Robert Watson
On Tue, 16 Jan 2001, mouss wrote: > A look at /usr/src/libexec/getty/main.c shows the folowing: > if (hostname[0] == '\0') > strcpy(hostname, "Amnesiac"); > > so, coherence suggests that the default should be "Amnesiac". > Othewise, you'll get different hostnames for

Re: Setting default hostname to localhost

2001-01-16 Thread mouss
A look at /usr/src/libexec/getty/main.c shows the folowing: if (hostname[0] == '\0') strcpy(hostname, "Amnesiac"); so, coherence suggests that the default should be "Amnesiac". Othewise, you'll get different hostnames for dhcp (and the like), and getty sessions. regard

Re: Setting default hostname to localhost

2001-01-12 Thread Warner Losh
In message <[EMAIL PROTECTED]> Archie Cobbs writes: : There is an RFC that specifies a "private use" top level domain, : analogous to 192.168.0.0/16, 10.0.0.0/8, etc. : : The domain is ".local" so any default ending in ".local" should : not conflict. RFC 2606 states: To safely satisfy these n

Re: Setting default hostname to localhost

2001-01-12 Thread Archie Cobbs
Warner Losh writes: > : Unless there are some really good reasons > : not to (which there may be), I'd like to commit changes to -CURRENT's > : /etc/default/rc.conf to change the default hostname to "localhost". > > We have localhost.com as one of our domains here in the Village. So > long as th

Re: Setting default hostname to localhost

2001-01-12 Thread Warner Losh
In message <[EMAIL PROTECTED]> Robert Watson writes: : Unless there are some really good reasons : not to (which there may be), I'd like to commit changes to -CURRENT's : /etc/default/rc.conf to change the default hostname to "localhost". We have localhost.com as one of our domains here in the V

Re: Setting default hostname to localhost

2001-01-11 Thread Donald J . Maddox
On Fri, Jan 12, 2001 at 12:22:42AM -0700, Wes Peters wrote: > David O'Brien wrote: > > So? Do you not understand the maintance headache this creates? > > Add a FreeBSD-supplied dhclient-exit-hooks script. As long as it will source a dhclient-exit-hooks.local :) Some of us already have dhclient

Re: Setting default hostname to localhost

2001-01-11 Thread Wes Peters
David O'Brien wrote: > > On Thu, Jan 11, 2001 at 10:25:25AM -0800, Brooks Davis wrote: > > I submitted one possiable solution to this problem in PR:conf/18583 > > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18583 > > Have you submitted this back to the ISC? > > > Other solutions include just let

Re: Setting default hostname to localhost

2001-01-11 Thread David O'Brien
On Thu, Jan 11, 2001 at 10:25:25AM -0800, Brooks Davis wrote: > I submitted one possiable solution to this problem in PR:conf/18583 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18583 Have you submitted this back to the ISC? > Other solutions include just letting DHCP smash the hostname all the

Re: Setting default hostname to localhost

2001-01-11 Thread Brooks Davis
On Wed, Jan 10, 2001 at 09:35:38PM -0500, Donald J . Maddox wrote: > On Wed, Jan 10, 2001 at 09:23:13PM -0500, Robert Watson wrote: > > /etc/default/rc.conf to change the default hostname to "localhost". If > > the user configures a hostname, or DHCP provides one, it will be > > overridden, of co

RE: Setting default hostname to localhost

2001-01-10 Thread Daniel O'Connor
On 11-Jan-01 Robert Watson wrote: > not to (which there may be), I'd like to commit changes to -CURRENT's > /etc/default/rc.conf to change the default hostname to "localhost". If > the user configures a hostname, or DHCP provides one, it will be > overridden, of course, so should not impact

Re: Setting default hostname to localhost

2001-01-10 Thread Donald J . Maddox
On Wed, Jan 10, 2001 at 09:23:13PM -0500, Robert Watson wrote: > /etc/default/rc.conf to change the default hostname to "localhost". If > the user configures a hostname, or DHCP provides one, it will be > overridden, of course, so should not impact any configuration but one > where the hostname i

Setting default hostname to localhost

2001-01-10 Thread Robert Watson
Under FreeBSD, the default hostname in /etc/defaults/rc.conf is currently an empty string, "". If the hostname is not later defined, then the system will use this through multi-user mode, which can disrupt application behavior. This can occur if DHCP doesn't provide a hostname, or if the user n