LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-29-2005, 05:44 AM   #1
mac_casey
Member
 
Registered: Jun 2002
Location: Edmonton
Distribution: SUSE 10
Posts: 62

Rep: Reputation: 15
Local Host?


Greetings,

My questions is this. It looks like i will have to redo my Mandrake box (groan). Now that i feel abit more confortable im curious about some things.

Host: Address 127.0.0.1 localhost.linix localhost localhost.localdomain
DNS Client :localhost

I found these in the DNS client and on the Nic. Is there a global place where i can change these names that will be refected throuout the system or are these the only places i should make the changes to my server?
 
Old 01-29-2005, 07:32 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Look in /etc/host file. Don't change the localhost part as that is required but you can change the .linix or .localdomain part.
 
Old 02-25-2005, 09:14 AM   #3
thesurfingroach
LQ Newbie
 
Registered: Sep 2004
Location: uk/us
Distribution: fedora core/ Whitebox
Posts: 4

Rep: Reputation: 0
If I change that in /etc/hosts it is not reflected in the redhat-config-network app!!

Does this mean that the redhat-config-network app does not read it's info from /etc/hosts?

I'm running whitebox (port of RHEL).

I would prefer to do this without having to rely on the GUI (trying hard to break that habbit) as I can get some xterm stuff running remotely (via ssh and cygwin) but would much much prefer to simply use command line.

help???
 
Old 03-02-2005, 06:31 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I am not familiar with redhat-config-network app but most of the time you get your hostname from the hostname command. The file /etc/hosts is not for assigning a hostname. It is usually for setting up your local lan. Because your ISP's dns server will not know that you have a computer on your lan called dadscomputer that has an ip of 192.168.0.2.
 
Old 03-02-2005, 06:57 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Redhat will also get these values from these files:

/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-ethX

Where X is the number of your nic, if you have only one, it'll most likely be ifcfg-eth0
 
Old 03-02-2005, 07:09 AM   #6
thesurfingroach
LQ Newbie
 
Registered: Sep 2004
Location: uk/us
Distribution: fedora core/ Whitebox
Posts: 4

Rep: Reputation: 0
Thanks. I've been using the :-

/etc/sysconfig/networking/profiles/default/hosts
/etc/sysconfig/networking/profiles/default/network

files to edit the name - is this ok or is something like hostname a better way of changing it?
 
Old 03-02-2005, 07:24 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by thesurfingroach
Thanks. I've been using the :-

/etc/sysconfig/networking/profiles/default/hosts
/etc/sysconfig/networking/profiles/default/network

files to edit the name - is this ok or is something like hostname a better way of changing it?
If you want to do it the really easy way.. just run as root: netconfig or I think its also redhat-config-network
 
Old 03-02-2005, 08:04 AM   #8
thesurfingroach
LQ Newbie
 
Registered: Sep 2004
Location: uk/us
Distribution: fedora core/ Whitebox
Posts: 4

Rep: Reputation: 0
Unhappy

When I ran the hostname app it didn't change the files above...

Where exactly are the files that keep the permanent info for your hostname? Are they the /etc/sysconfig/network-scripts/ifcfg-eth0 and etc/sysconfig/network? so if I just needed one change and had to do it the hardway then those two files should do it yeah?
---------------
ok after more investigations it looks like ifup calls /etc/sysconfig/network so I'm going to assume that this file IS the permanent one and forget all the other options... unless someone else points out I'm doing this all wrong

Last edited by thesurfingroach; 03-02-2005 at 08:48 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Local Host MizEllyRolls Linux - Security 3 09-14-2005 08:32 PM
How can i change my local host? Jose Santos Linux - Newbie 1 05-26-2005 04:15 AM
local host login raysr Linux - Newbie 18 11-28-2003 02:35 PM
Local Host Webpage littlebradley Linux - Software 4 05-09-2003 08:39 PM
Local Host Name Change!! jarmstrong Linux - General 9 12-21-2002 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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