Hostname / Dns/ fqdn


Forum: Networking
Topic: Hostname / Dns/ fqdn
started by: bryandj23

Posted by bryandj23 on Oct. 03 2005,23:19
How does one permanently change the hostname on a DSL box? (no pun intended).

This is my second installation of DSL, so now I have two machines name 'box' on the LAN.  One is being run as a Shoutcast server, so I'd like to change the hostname and dns domain name.  I think running 'hostname' changed it before - maybe I just didn't backup.  Just want to make sure I'm doing it right.

And, one more stumper - how can I get the network to stop using DHCP broadcast?   This I have changed using netcardconfig, and even after backup, restarting will go back to DHCP-assigned.

Any help would be greatly appreciated.  I'm still learning my way through Linux.

Posted by adssse on Oct. 04 2005,03:14
I am not sure but I would look at /etc/hostname. Right now it only has 'box' in it, so that might be what you are looking for.
Posted by ke4nt1 on Oct. 04 2005,03:26
I'm not sure how your running your OS.. LiveCD , Frugal, or HDInstalled.

With liveCD, boot with the options nodhcp, and host=your_new_hostname
in your startup commands..

Same with Frugal/Grub/Lilo..
Add the nodhcp and host=whatever to your menu.lst ( grub) or append lines (lilo)

73
ke4nt

Posted by bryandj23 on Oct. 04 2005,15:57
it's installed to hard drive.  I think I'm pretty much screwed.  Either that or I'm thinking I need to set everything up while it's running off the CD, THEN install to HD?

Other distros of Linux are looking better for this shoutcast server.

Posted by bryandj23 on Oct. 04 2005,17:26
Ok..

It just floors me that I haven't been able to achieve the following:

1.  Set network card to ip 10.x.x.x
2.  Set hostname to 'scanner.mydomain.com'
3.  Start sc_serv in the background
4.  Start sc_trans_linux in the background.

Don't get me wrong, I love DSL.  It's worked great for me as a workstation system.  Having a setup that's completely automated for my needs as a server, however isn't working out.  I just want to be able to turn the box on, and have it start streaming.

Posted by clivesay on Oct. 04 2005,17:58
I'm not sure what sticks and what doesn't at reboot with a HD install but if you consider a frugal grub install you can...

1. add those settings to bootlocal.sh for backup/restore. I have all the commands you need in the wiki. < HERE >

2. As Ke4nt mentioned before. If you have a frugal grub install go to the root of the partition and edit the menu.lst file in /boot/grub and add "host=scanner.mydomain.com" to the append line. Also add 'nodhcp' on this same line for step 1 above.

3&4. you can also start them in bootlocal.sh or if you want to run X you can put them in the /home/dsl/.xinitrc file BEFORE the last fluxbox line. You will want to put the '&' after each entry to run it in the background.

What you are trying to do is easily achievable with DSL. I currently run a headless mp3 server accessed with vnc and ftp. Many others here do similar things.

Good Luck

Chris

Posted by bryandj23 on Oct. 04 2005,19:20
Pardon my previous whining.....I figured it out.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.