You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Ignoring a DHCP-supplied hostname

Is it possible to ignore a DHCP-supplied hostname? I have my hostname set via the System Preferences->Sharing pane, and like it that way. When I connect to my network at work (which has a DHCP server configured to pass down hostnames), my hostname in my shell is the nasty VLAN info string configured by my network admins. I'd like it to remain my own, attractive hostname. 🙂
I know I can configure myself with a static IP, but I don't really see a need for that.
Is there anything like /etc/dhclient.conf on Linux systems? Can I somehow tell OS X to ignore the DHCP-supplied hostname, like I can tell dhclient systems?

 MacBook Pro 15.4", Mac OS X (10.4.8)

Posted on Feb 9, 2007 9:59 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 9, 2007 10:33 AM

If it's just to keep your shell prompt consistent, maybe you could set it in a login script? I did this recently for a bunch of laptops that we send to trade shows. Works well. I could post the code if you'd like. Don't remember it off the top of my head.

--
Cole
3 replies

Ignoring a DHCP-supplied hostname

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