Computer Name?


Forum: Networking
Topic: Computer Name?
started by: DeNnO

Posted by DeNnO on Feb. 02 2006,21:22
Hi,

Is there a way to set a computer name for my DSL PC?

I can only access it using the IP address but am wanting to use a computer name.

The computer Name shows up as unknown on my Router which means it can not detect one.

I do know that BOX works in DSL but i need it to be able to be able to access it on the network.

Sorry I am a Linux Newbie....

Posted by newOldUser on Feb. 03 2006,00:16
If I understand you correctly then you may need a DNS server? Or are you saying that your router is your DNS server but the DSL box doesn't show up?  You may want to post a little more information.  Are you trying to get to your DSL box from a windows machine?  If you are, and if your DSL box has the same IP address each time it boots you can add a line to your window machines hosts file.  It's usually found in something like C:\WINDOWS\SYSTEM32\DRIVERS\etc directory. It's called 'hosts'. You can edit it with notepad.  

Add a line with the IP address a few spaces and the name you want to use for that IP address. So it might look like this:

127.0.0.1 localhost
192.168.1.101  myDSLServer

Just add lines as you need them.

Now whenever I reference myDSLServer windows can translate it to an IP Address.

-Good luck

Posted by Joe Breher on Feb. 03 2006,20:34
Perhaps you have the same problem I have. My 'DNS' server is a Linksys WRT54AG all-in-one appliance. I think it understands enough about its duties to provide DNS-like services over WINS or some other microsoft bastardization, but does not relly understand DNS as a whole. As a consequence, I can only access my linux boxes via IP address. It's a PITA, but not so much so that I've done anything about it.
Posted by larkl on Feb. 04 2006,12:39
I think that NewOld suggestion will fix both of your problems.  It doesn't matter what the DSL box thinks it is, all it'll ever see is the same old IP address.  If you'll edit your hosts file with the static IP address, then WIndows will do the name to IP conversion for you.  If the DSL box is using dchp, then this won't work.  But, you could easily convert it to a static IP address, especially if it's not being moved around to other networks.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.