Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

hostname changes

 
   Soft32 Home -> Mac -> Comm RSS
Next:  best way to take cialis  
Author Message
Alan Spitz

External


Since: Oct 28, 2007
Posts: 16



(Msg. 1) Posted: Sun Jan 04, 2009 11:20 am
Post subject: hostname changes
Archived from groups: comp>sys>mac>comm (more info?)

Hi,

I have a macBook running 10.5.6.

Looking at all messages in Console I see several instaces of, for example:
1/4/09Sunday Jan 4 09:30:26 AM configd[14] setting hostname to
"alan-spitzs-macbook.local"
1/4/09Sunday Jan 4 09:30:30 AM configd[14] setting hostname to "new-host.home"

In particular, whenever I open the lid to wake my machine from sleep I
see that sequence of messages (of course there are other messages too).

I want to make a script to run ssh to connect to another host running
10.5.5 but I don't know if the hostname might change on the remote host.

I have an idea that this is related to DHCP somehow. I've tried
turning DHCP off via System Preferences/Network/Advanced/TCPIP but I
cannot connect to the internet when I do so. I've tried both Using
DHCP with manual address and Manually and I cannot connect to the
internet in either case.

Does somebody have an explanation as to why the hostname keeps changing?

--
Alan Spitz
Back to top
Login to vote
Kevin McMurtrie

External


Since: Nov 08, 2008
Posts: 67



(Msg. 2) Posted: Sun Jan 04, 2009 1:50 pm
Post subject: Re: hostname changes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <2009010410054716807-alanspitz@NOSPAMgmailcom>,
Alan Spitz <alan.spitz RemoveThis @NOSPAMgmail.com> wrote:

> Hi,
>
> I have a macBook running 10.5.6.
>
> Looking at all messages in Console I see several instaces of, for example:
> 1/4/09Sunday Jan 4 09:30:26 AM configd[14] setting hostname to
> "alan-spitzs-macbook.local"
> 1/4/09Sunday Jan 4 09:30:30 AM configd[14] setting hostname to
> "new-host.home"
>
> In particular, whenever I open the lid to wake my machine from sleep I
> see that sequence of messages (of course there are other messages too).
>
> I want to make a script to run ssh to connect to another host running
> 10.5.5 but I don't know if the hostname might change on the remote host.
>
> I have an idea that this is related to DHCP somehow. I've tried
> turning DHCP off via System Preferences/Network/Advanced/TCPIP but I
> cannot connect to the internet when I do so. I've tried both Using
> DHCP with manual address and Manually and I cannot connect to the
> internet in either case.
>
> Does somebody have an explanation as to why the hostname keeps changing?

Set the computer name in the "Sharing" System Preference. The name you
set there will work on any computer within your virtual local network.
It's a special form of domain resolution using local broadcast packets
rather than a central server.

For example, set it to "alan-spitzs-macbook" and then
"alan-spitzs-macbook.local" will resolve to it.


Getting normal DNS to work is harder. You'll need a business-class
router (not a Linksys), a private domain name server, or publicly
registered domain names for public addresses.

--
Google is a pro-spamming service. I will not see your reply if you use Google.
Back to top
Login to vote
Alan Spitz

External


Since: Oct 28, 2007
Posts: 16



(Msg. 3) Posted: Mon Jan 05, 2009 9:20 am
Post subject: Re: hostname changes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2009-01-04 16:50:27 -0500, Kevin McMurtrie <kevinmcm.DeleteThis@sonic.net> said:

> In article <2009010410054716807-alanspitz@NOSPAMgmailcom>,
> Alan Spitz <alan.spitz.DeleteThis@NOSPAMgmail.com> wrote:
>
>> Hi,
>>
>> I have a macBook running 10.5.6.
>>
>> Looking at all messages in Console I see several instaces of, for example:
>> 1/4/09Sunday Jan 4 09:30:26 AM configd[14] setting hostname to
>> "alan-spitzs-macbook.local"
>> 1/4/09Sunday Jan 4 09:30:30 AM configd[14] setting hostname to
>> "new-host.home"
>>
>> In particular, whenever I open the lid to wake my machine from sleep I
>> see that sequence of messages (of course there are other messages too).
>>
>> I want to make a script to run ssh to connect to another host running
>> 10.5.5 but I don't know if the hostname might change on the remote host.
>>
>> I have an idea that this is related to DHCP somehow. I've tried
>> turning DHCP off via System Preferences/Network/Advanced/TCPIP but I
>> cannot connect to the internet when I do so. I've tried both Using
>> DHCP with manual address and Manually and I cannot connect to the
>> internet in either case.
>>
>> Does somebody have an explanation as to why the hostname keeps changing?
>
> Set the computer name in the "Sharing" System Preference. The name you
> set there will work on any computer within your virtual local network.
> It's a special form of domain resolution using local broadcast packets
> rather than a central server.
>
> For example, set it to "alan-spitzs-macbook" and then
> "alan-spitzs-macbook.local" will resolve to it.
>
>
> Getting normal DNS to work is harder. You'll need a business-class
> router (not a Linksys), a private domain name server, or publicly
> registered domain names for public addresses.

I went to System Preferences/Sharing. The hostname is set to
alan-spitzs-mcbook.local. But "uname -n" returns new-host.home.

Console/All shows a message indicating that the hostname was set to
alan-spitzs-macbook.local and then after four seconds there is a
message indicating that the hostname was set to new-host.home.

I cannot set the hostname to new-host.home via System
Preferences/Sharig because it provides the extension ".local".

Using an IP address would accomplish the same thing but with DHCP it
would change it from time to time. And I have been poking around in
/etc et al, thinking I could write a script that gets either the IP
address or the hostname and I haven't found anyplace were either one is
stored.

I would appreciate it if somebody tells me why the hostname change and
where the IP address and hostname are stored.

Thank you.
--
Alan Spitz
Back to top
Login to vote
Tom Harrington

External


Since: Aug 19, 2003
Posts: 1921



(Msg. 4) Posted: Mon Jan 05, 2009 9:53 am
Post subject: Re: hostname changes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <2009010508522675249-alanspitz@NOSPAMgmailcom>,
Alan Spitz <alan.spitz DeleteThis @NOSPAMgmail.com> wrote:

> Console/All shows a message indicating that the hostname was set to
> alan-spitzs-macbook.local and then after four seconds there is a
> message indicating that the hostname was set to new-host.home.

Have you checked your router's configuration? It may be passing this
hostname back along with the IP address, in which case your Mac is using
the hostname that your local network tells it to use.

> Using an IP address would accomplish the same thing but with DHCP it
> would change it from time to time. And I have been poking around in
> /etc et al, thinking I could write a script that gets either the IP
> address or the hostname and I haven't found anyplace were either one is
> stored.

Normally if you configure the Mac to have a static IP address, you don't
use DHCP, so I'm not sure what the problem is here.

--
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Local connection and internet connection - I have a cable modem connected to a D-Link 704 routing to a PC and two Macs. The two Macs are: and older Power..

Comments in PP - A friend regularly edits PP presentations that I sent to him where he adds comments to certain bullets. For some reason...

Product Key Loss? - Hi, I have recently bought a new laptop along with Microsoft Office Standard 2007 (July) and successfully registered..

Virus? - Ever since I loaded the most recent upgrade to my virtual pc, my computer will without warning shutdown. Today I was..

Virtual pc for mac - I have Just found out about Microsoft virtual PC for mac, And i downloaded the version 7, its then said i could not..

VCP - I hav just found out about virtual pc for mac. I tried to install microsoft version 7, said i needed 6.1, then teh same...
       Soft32 Home -> Mac -> Comm All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]