LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2005, 01:23 PM   #1
s1goldman
LQ Newbie
 
Registered: Jan 2005
Location: boston ma
Distribution: fedora
Posts: 2

Rep: Reputation: 0
Change Host and Ip address Fedora 3


I need to change my IP and Host name on my system. I changed the IP address and in pings- the hostname did not change - I tried adding a line a line to the /etc/hosts file - ip and hostname-

rebooted -
still the hostname does not reflect the correct host name for the IP address?
Any thoughts
 
Old 01-04-2005, 03:16 PM   #2
s1goldman
LQ Newbie
 
Registered: Jan 2005
Location: boston ma
Distribution: fedora
Posts: 2

Original Poster
Rep: Reputation: 0
This worked for me-

pinged new hostname

access default web page



Edit the hosts file on your system. The hosts file is usually found in


/etc/hosts



Add this entry to the Hosts file:

216.201.182.27 directory.thepalace.com


Now make sure this file is used for host name lookups. This is done in two files. First is:
/etc/host.conf


This file should have at least the line shown below:

order hosts,bind


That has host lookups use the hosts file before doing a DNS query with bind.


The next file is:

/etc/nsswitch.conf


Recent tests indicate that this file is required in order for the pserver to use the entry in /etc/hosts. The nsswitch.conf file should have this line for the hosts configuration:

hosts: files nisplus nis dns


There will probably already be a similar line in your version of this file. Just make sure "files" comes before whatever other methods are listed.

There is no need to reboot your system. Just restart your palace pservers.

Start up your palace.

 
Old 01-04-2005, 03:33 PM   #3
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
Hehe, wrong direction. Look in the /etc/sysconfig/network file, then change /etc/hosts

almost forgot change some addresses under /etc/sysconfig/network-scripts if you are using static IP on your box. If you are on DHCP just modify hosts.

What you did works, i guess, but its waaay of an overkill.

Last edited by Mikhail_16; 01-04-2005 at 03:47 PM.
 
Old 01-04-2005, 04:24 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Or you can run 'netconfig' to change IP address on redhat.

-twantrd
 
  


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
Error IP address already used by another host lngmn7 Linux - Networking 2 08-29-2005 04:41 AM
How could i refer to the Linux box using host name rather than IP address ckamheng Slackware 4 05-10-2005 07:48 AM
how to force ip address/host name pair sichen Linux - Networking 4 08-12-2004 10:50 AM
eth0 and host address tommytomato Linux - Newbie 2 12-03-2003 04:29 PM
iptables - blocking a host by MAC address retiem Linux - Security 6 08-29-2003 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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