LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-09-2004, 03:02 AM   #1
slickrcbd
Member
 
Registered: Jan 2003
Posts: 42

Rep: Reputation: 1
How do I keep the local name for the computer from being dynamically assigned by DHCP


How do I keep my ISP's DHCP server from assigning a seemingly random string of characters as my computer's hostname?
I'd prefer to have a welcome screen at the login that says something like "Welcome to Slick's Computer" instead of something like
"Welcome to X-372BD3SO-4D8C" or some other meaningless garbage. Dito for the prompts, which say "SLICKRCBD@X-347...".
Is there any way to change this? I found that modifying the "Hosts" file to assign a meaningful domain will work, but only until
my ISP decides to assign me a new IP number, at which point I lose internet access until I remove it.

I'm using Yellow Dog Linux on a PowerMac 6500. It's based off Red Hat, but for the Power PC processor.
 
Old 02-09-2004, 04:12 AM   #2
lone_nut
Member
 
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
You could set a cron job to run `hostname Slick\'s\ Computer`
Every minut. That way you would only lose internet contact for about a minut.
 
Old 02-09-2004, 10:20 AM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
Edit /etc/issue and place what you want there. I believe that this should do it.
 
Old 03-04-2004, 12:11 AM   #4
slickrcbd
Member
 
Registered: Jan 2003
Posts: 42

Original Poster
Rep: Reputation: 1
Quote:
Originally posted by lone_nut
You could set a cron job to run `hostname Slick\'s\ Computer`
Every minut. That way you would only lose internet contact for about a minut.
The command by itself worked. How would I set it up so that the command
hostname SlicksComputer

is executed automatically prior to the login screen being brought up?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP can't dynamically assign IP adress xuyxs Linux - Networking 3 12-22-2004 03:00 AM
What's my DHCP assigned IP and where is it? Buckyjunior Linux - Networking 7 02-27-2004 01:29 PM
Can't seem to dynamically assign my ethernet card using DHCP client daemon tre Linux - Networking 1 01-03-2004 10:21 AM
dhcp assigned address nilbog Linux - Networking 4 04-02-2003 11:17 AM
How to find out my IP address on a DHCP IP Assigned machine? simonh Linux - Networking 2 12-10-2002 05:49 AM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration