Link to home
Start Free TrialLog in
Avatar of PJ0302917
PJ0302917

asked on

What does the /etc/sysconfig/network-scripts/ do?

I'm using CentOS 6.8 but think this is a more general Linux question.

I'm writing a script which modified the hosts file in /etc but have noticed there is another hosts file in /etc/sysconfig/network-scripts/

I've had a search but can't find a description for the use of this host file, does anyone know? I'm trying to work out if I need to change multiple files.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PJ0302917
PJ0302917

ASKER

Interesting,

We have a setup where we have over 100 profiles in /etc/sysconfig/networking/profiles and each profile has its own hosts file which overwrites etc/hosts when its applied.

I just noticed the hosts file in /etc/sysconfig/network-scripts/ wasn't getting updated when we changed profiles. Looks like its maybe a leftover from the guys who used the laptop before I got hold of it.

Thanks for looking into this for me noci
no problem