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

Notices


Reply
  Search this Thread
Old 11-13-2004, 06:35 AM   #1
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Rep: Reputation: 15
Bit of a thick question (re localhost name change)


Hi i have been trying to change just the name of my pc so that its dave@nameiwant instead of dave@localhost.localdomain is there any possible way to do this with out messing my box up? i have googled and tried various sujjestions but none seem to work i always get some kind of error, i have tried the following:
Changing contents of etc/sysconfig/network:
HOSTNAME=localhost.localdomain to HOSTNAME=nameiwant.localdomain (this brings up a error when logging into gnome about not finding domain name server)
also tried HOSTNAME=localhost.localdomain nameiwant (this brought up tonnes of errors lol)

I have a stand alone pc running fc3, any help would be most welcome.

Last edited by Slinky; 11-13-2004 at 06:36 AM.
 
Old 11-13-2004, 07:17 AM   #2
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
ok... this one is trickey as there are several files in /etc/that need editing. bare in mind this has worked fine for me, but it might not work fo you..

first off... your domain name needs to be .local
ill paste the files you need to look at... for rwefrence my machene is rollright.coreline.local

then.. This should be in a file called /etc/hosts
Code:
127.0.0.1 rollright.coreline.local rollright localhost
your.ip.adress.here rollright.coreline.local rollright
this should be in a file called /etc/resolv.conf
Code:
nameserver 192.168.9.11
nameserver 192.168.9.33
search coreline.local
i think theres an environment verrible that needs editing aswell

if the above dosent work, try erchning this site for the problem, i got my solution for here so the trheds are stil larround somewhere

Last edited by crm; 11-13-2004 at 07:19 AM.
 
Old 11-13-2004, 07:19 AM   #3
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
This worked for me, try it out

You have to change in /etc/sysconfig/networl the name after "HOSTNAME=". Then you write in /etc/hosts once the complete name and once without the domainsuffix [the part before the first dot].

Code:
[boby@space boby]$ hostname
space
Code:
[boby@space boby]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=space
Code:
[boby@space boby]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
213.164.252.212          space.localdomain      space
Hope this helped!
Boby
 
Old 11-13-2004, 07:24 AM   #4
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Original Poster
Rep: Reputation: 15
thanks for your replys will give em a go and post back how i get on!
 
Old 11-13-2004, 07:47 AM   #5
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Original Poster
Rep: Reputation: 15
hi sorry to bother u again but how can i find out my ip addy i did netstat -r and this is what i got:
[root@localhost ~]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.0.0.2 0.0.0.0 UG 0 0 0 eth0
[root@localhost ~]#
 
Old 11-13-2004, 08:02 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
The command ifconfig (you may need to su to root first) will give your ip details.
 
Old 11-13-2004, 08:04 AM   #7
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Quote:
ifconfig
and search for inet addr: xxx.xxx.xxx.xxx

...this is if I understand your question

Boby

EDIT: And again someone is replying faster than me

Last edited by Boby; 11-13-2004 at 08:05 AM.
 
Old 11-13-2004, 08:04 AM   #8
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Original Poster
Rep: Reputation: 15
edit

Last edited by Slinky; 11-13-2004 at 10:29 AM.
 
Old 11-13-2004, 08:10 AM   #9
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Original Poster
Rep: Reputation: 15
so my ip addy is 10.0.0.10? have set it to that in ect/hosts and everything seems ok
My one concern being that i dont have a static ip addres will this afect anything?



everything seems to be ok thankyou for all your help

Last edited by Slinky; 11-13-2004 at 08:31 AM.
 
Old 11-13-2004, 12:50 PM   #10
pandasonic
Member
 
Registered: Nov 2003
Location: Bronx, NY
Distribution: Fedora Core 3
Posts: 53

Rep: Reputation: 15
hey

an easier way to change the localhost.localdomain to the name you want is by going to Applications / System Settings / Network / DNS - and change your Hostname there... that's under GNOME on FC3

hope that helps

Thanks
 
  


Reply



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
another pctel question... but I AM a BIT further infantpenguin Linux - Newbie 1 01-28-2005 08:54 PM
Linux 64 bit question Haniblectre Slackware 2 09-06-2004 11:37 AM
hi .. im a little bit new and have question about counter New In Linux 11 Linux - Games 4 07-25-2004 06:48 PM
Printing OpenOffice drawing without thick contour lines?? carlos123 Linux - Software 0 11-07-2003 04:01 PM
Sticky bit question...need help rootlinux Linux - General 1 01-26-2002 05:12 PM

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

All times are GMT -5. The time now is 09:15 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