LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-21-2008, 01:32 AM   #1
joeman3429
Member
 
Registered: Jul 2004
Location: Oregon
Distribution: Fedora
Posts: 67

Rep: Reputation: 15
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.
 
Old 10-21-2008, 01:36 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How many computers on your network? If only a couple, you can add the name to the hosts file - something like

Code:
1.2.3.4       joebuntu
If you havea lot of machines you'd be better off setting up a dns server.
 
Old 10-21-2008, 01:50 AM   #3
joeman3429
Member
 
Registered: Jul 2004
Location: Oregon
Distribution: Fedora
Posts: 67

Original Poster
Rep: Reputation: 15
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.
 
Old 10-21-2008, 07:09 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
 
Old 10-21-2008, 05:50 PM   #5
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
On a LAN you could address the server as "joebuntu.local".
 
Old 10-21-2008, 05:52 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You need to put the entry in the client hosts files.
 
  


Reply

Tags
name, network, server, ubuntu



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
Email Server Able to see Local Network but not Internet?? thiessenstuart Linux - Networking 3 08-24-2005 02:29 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
Apache server works, but only on my local network munchies Linux - Networking 4 04-07-2004 09:18 AM
SGI ALTIX server on local network eqamar Linux - Networking 1 07-27-2003 02:27 PM
SMB server running in the local network Gerardoj Linux - Networking 2 07-04-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration