1819866 Members
2631 Online
109607 Solutions
New Discussion юеВ

Hosts file

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

Hosts file

Hi all,

can anyone tell me how teh hosts file in /etc/sysconfig/networking/profiles/default/hosts gets maintained. We have one that gets maintained in /etc/hosts but dont know about this one. Any help is truly appreciated.
6 REPLIES 6
Hazem Mahmoud_3
Respected Contributor

Re: Hosts file

This one does not need to get maintained I believe because it is a default one. It used for looking at how the default host file looks like.

-Hazem
Ragni Singh
Super Advisor

Re: Hosts file

I dont believe thats correct becasue it seems whenever we make a chnage to /etc/hosts, this particular file gets updated as well.
Alexander Chuzhoy
Honored Contributor

Re: Hosts file

Ragni Singh
Super Advisor

Re: Hosts file

Thanks but that stil doesn't tell me how both hosts file relate to one another.
Hazem Mahmoud_3
Respected Contributor

Re: Hosts file

Here might be a good place to start:

http://archive.lug.boulder.co.us/bymonth/2002.10/msg00160.html

Hope that helps!

-Hazem
Martin P.J. Zinser
Honored Contributor
Solution

Re: Hosts file

Hello,

the file gets maintained for you "under the covers". The active hosts file used on your server is /etc/hosts . As stated earlier here,
the one in profiles, would be used in case you had different environments setup on your system (typically used on a Notebook you want to attach to different networks). If you use the redhat tools they will update the active profile as well as the original hosts file.

Greetings, Martin