Adter adding new ztv10 W 300 ZTE Router command prompt changed

I just installed my new ZTE Router (ethernet+wifi) model ztv10 w300 and got it working even though I seem to be having a few ip address conflicts. The question I have now is why do I see local0026bb05005b:~ jasper$ when I open a command prompt now instead of Jaspers-MacBook-Pro.local:~ jasper$ as before? Under sharing I still have Jaspers-MacBook-Pro.local, but no longer in the terminal. Why? Is this going to cause issues? How do I revert?

Macbook Pro Intel Core 2 Duo, Mac OS X (10.6.4), MacPorts, VMWare Fusion

Posted on Aug 12, 2010 10:42 PM

Reply
3 replies

Aug 13, 2010 12:12 AM in response to rhand

The hostname can be changed dynamically by routers and other network devices through DHCP requests, which can have the hostname keep changing every time your IP address and other DHCP information is renewed. If this is the case, you may be able to set the router to never provide hostname information, or you can set the computer to never accept a hostname change. To do this, you will need to add a line to the computer's hostconfig file using the following procedure:

Open the Terminal
Enter the following command:

sudo pico /etc/hostconfig

Authenticate, scroll to the bottom of the file, and add the following line:

HOSTNAME=MacBook

(Change "MacBook" to your desired hostname--no spaces)

Save the file and quit by pressing control-X, confirming the save with the "Y" key followed by "enter".
After this has been added to the file, the computer's hostname should not change even when you renew your DHCP lease.

Cheers

Aug 14, 2010 12:48 AM in response to Gobs

local0026bb05005b:~ me$ sudo vim /etc/hostconfig


# This file is going away

AFPSERVER=-NO-
AUTHSERVER=-NO-
AUTOMOUNT=-YES-
NFSLOCKS=-AUTOMATIC-
NISDOMAIN=-NO-
TIMESYNC=-YES-
QTSSERVER=-NO-
WEBSERVER=-NO-
SMBSERVER=-NO-
SNMPSERVER=-NO-

I added HOSTNAME=JaspersMBP. After saving my command line still is local0026bb05005b:~ me$ . Will restart and see

Aug 14, 2010 1:08 AM in response to rhand

OK. Works. Awesome and thank you! Just wonder if the file will stay as there was a comment in the file that the file will go away. Will see I guess..

P.S. I changed /etc/hosts as well to add the new hostname to 127.0.0.1 . Wonder If I will have to change my MBP name in my MBP system preferences under sharing..?

Message was edited by: rhand

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Adter adding new ztv10 W 300 ZTE Router command prompt changed

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.