LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 02: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, 04: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, 04: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 04:47 PM.
 
Old 01-04-2005, 05: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


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


All times are GMT -5. The time now is 04:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration