Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $HOST on OS X
- X-seq: zsh-users 15091
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: FranÃois Revol <revol@xxxxxxx>
- Subject: Re: $HOST on OS X
- Date: Sat, 5 Jun 2010 14:52:33 -0400 (EDT)
- Cc: zsh-users@xxxxxxx
- In-reply-to: <FCD37EB8-E199-4AC2-ACB9-D1A899302558@xxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <A31BDCF6-D2C6-4674-B4D5-86B60347A0B2@xxxxxxxxxxxxxxxxxx> <16277B2D-B9C7-4B56-A74C-AE6266BDA089@xxxxxxxxxxxxxxxxxx> <alpine.LNX.2.01.1006051125040.5029@xxxxxxxxxxx> <alpine.LNX.2.01.1006051142290.5029@xxxxxxxxxxx> <FCD37EB8-E199-4AC2-ACB9-D1A899302558@xxxxxxx>
On Sat, 5 Jun 2010, FranÃois Revol wrote:
> Le 5 juin 2010 Ã 17:45, Benjamin R. Haskell a Ãcrit :
>
> > So, maybe there was some script you/someone ran that set
> > HOST=e3191.c.akamaiedge.net, for convenience. (For uploading things
> > to Akamai's CDN, maybe? Seems a bit of a stretch.)
>
> No it's only a bad habit of OSX to update hostname depending on the
> joined network, I often noticed this when using wifi or an unusual
> LAN. So when you open a Terminal at that point it shows this in the
> prompt and other stuff...
If that's the case, I might expect a hostname like
pool-68-162-167-80.pitt.east.verizon.net (something from a DHCP pool
assigned by an ISP). Not something on akamaiedge.net, which is
certainly not an ISP. Unless someone's playing weird games with routing
via Amazon-EC2. (More likely, that one in particular seems like some
upstream DNS misconfiguration, akin to the bad PTR record for an RFC
1918 address in this post[1].)
Regardless, OS X is far from the only O/S that'll update hostnames when
you join a network. And especially on a laptop, it often makes sense.
For instance, after associating with a university's wireless network,
your host probably has a different name assigned to it. Why would it be
bad to update it?
> IMO it's a security risk though...
What part, and how so?
--
Best,
Ben
[1] http://www.techsupportforum.com/networking-forum/networking-support/407794-strange-hostname-private-ip.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author