Hosts configForum: Networking Topic: Hosts config started by: numb Posted by numb on Mar. 05 2005,20:20
I want to set up DSL on an ancient laptop to play streamed music from another linux box named "Homeserver." Homeserver is running Streamsicle to stream MP3s. The plan fall apart though because the url "http://homeserver:8080/" takes me someware on the internet. I wisely typed in the url "http://192.168.0.4:8080". Thinking I was smart, the web page came up, I hit play and XMMS errored out saying "couldn't lookup host homeserver". Bummer. As a noob I figured mapping homeserver's IP address on the /etc/hosts would fix this. Of course I can't because its live CD. D'oh. Sooo, is there a work around or do i have to install this on my hardrive? Posted by irun5k on Mar. 05 2005,21:38
Hmm, adding to the hosts file is what I would have done but obviously won't work unless you do a HD install. Which has a lot of advantages, if you had the HD to spare.Otherwise, a straight IP address solution should work but you've got something upstream that is referencing "homeserver". If I were you I'd look into the configuration of your software that handles the streaming and see if it is configured to use "homeserver" in which case you can change it to the IP. Only other solution I can think of is to set up a DNS server so DSL can get the name resolution right. Posted by numb on Mar. 05 2005,21:53
Hey thanks, that got my gears turning again. Setting up a DNS may be the to go. Should have thought of that!
Posted by cbagger01 on Mar. 06 2005,07:07
FYI,You CAN edit the /etc/hosts file when running from livecd. The /etc/hosts file is a symlink pointing to a read-only file that is located at /KNOPPIX/etc/hosts To be able to edit, do this: sudo su rm /etc/hosts cp /KNOPPIX/etc/hosts /etc/hosts beaver /etc/hosts exit exit It should be possible to back the file use using the backup / restore process. |