LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 09-07-2003, 01:06 PM   #1
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Rep: Reputation: 30
How to change computer name?


(OS) FreeBSD 5.0-release

Hi, I need some help! When I installed freebsd I wanted to use it as a desktop but X wouldn't start unless I entered a domain name. So I named it Oliver@localhost.local and all went well after that until I tried to set up my mail account. I can receive mail just fine but I can't send. I worked on this a while with no success so I decided to sniff the connection this is what I found. The problem is in the handshake. The mail server is trynig to respond to my computer name witch is Oliver@localhost.local which is not a valid host. So in short I believe if I can change my computer name it should work but I'm not sure how to do that?

Thanks!
 
Old 09-07-2003, 01:38 PM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Your /etc/rc.conf now contains the following line:
hostname="Oliver@localhost.local"

Change it to the new hostname. However, I think it is not a good thing to use "@" and the word "localhost" in the hostname.
Your hostname should be be like "oliver.foo.bar".
 
Old 09-07-2003, 01:53 PM   #3
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Original Poster
Rep: Reputation: 30
Awesome! It works thank you very much.
 
Old 09-14-2003, 04:43 AM   #4
WiZaC
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD
Posts: 110

Rep: Reputation: 15
Or just writing "hostname <hostname> (ex. hostname name.domain.xxx)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Change computer name l23x4 Linux - Networking 8 07-17-2005 10:47 AM
how to change the name of the computer greghua Linux - Software 2 05-24-2005 08:35 PM
how to change the computer name? leduytien Linux - Software 7 02-01-2005 08:03 AM
change computer imagineaxion Mandriva 6 11-17-2004 07:33 AM
How do I change the computer name ?? jadermf Linux - Software 4 03-18-2004 05:35 PM


All times are GMT -5. The time now is 03:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration