| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-21-2008, 01:32 AM
|
#1
|
|
Member
Registered: Jul 2004
Location: Oregon
Distribution: Fedora
Posts: 67
Rep:
|
How do I change name of server on local network?
I just installed Ubuntu 8.04 server edition, and I'm just trying to figure out how to be able to refer to the computer on my local network by it's name. When I installed, I named it joebuntu (I know, clever), but when I try to go to http://joebuntu, or even joebuntu:80, or ssh into joe@joebuntu, it doesn't find it.
Naturally if I replace joebuntu with it's local ip it works fine.
So am I missing something really simple? I feel like this normally works just fine how I want it too.
|
|
|
|
10-21-2008, 01:36 AM
|
#2
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
How many computers on your network? If only a couple, you can add the name to the hosts file - something like
If you havea lot of machines you'd be better off setting up a dns server.
|
|
|
|
10-21-2008, 01:50 AM
|
#3
|
|
Member
Registered: Jul 2004
Location: Oregon
Distribution: Fedora
Posts: 67
Original Poster
Rep:
|
in the /etc/hosts file I already have an entry:
127.0.1.1 joebuntu.gateway.2wire.net joebuntu
uh, 2wire is the name of my router btw.
Is that what's causing the problem? Hmm, I changed it to
127.0.1.1 joebuntu
and reboot, but it didn't seem to have an effect.
And yeah, just 3 computers on a home network.
|
|
|
|
10-21-2008, 07:09 AM
|
#4
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
You need another line in /etc/hosts:
LAN.IP.OF.SERVER joebuntu.gateway.2wire.net joebuntu
eg
192.168.0.3 joebuntu.gateway.2wire.net joebuntu
|
|
|
|
10-21-2008, 05:50 PM
|
#5
|
|
Senior Member
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466
Rep:
|
On a LAN you could address the server as "joebuntu.local".
|
|
|
|
10-21-2008, 05:52 PM
|
#6
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
You need to put the entry in the client hosts files.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:42 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|