1

I use dhcpcd to manage this file.

First, start dhcpcd service, and the file has something with namesever.

All things can be done correctly.

But this file will become blank after a while.

I try to use auditd to monitor that file.

The report is only about chmod and dhcpcd-run-hook.

I try to use resolv.conf.head. Sometimes it can work, but sometimes resolv.conf also become blank.

Is there a way to find more infomation about it? Or do you have any idea to fix this?

Edit:

System: Gentoo/Linux

Initscript: Openrc

I asked on irc, and get a answer: conflicted between different tools. But I only use dhcpcd and Netifrc.

1
  • Witch OS are you using?
    – MichalSv
    Commented Oct 17, 2018 at 13:35

2 Answers 2

0

You can try to change attributes on file after you have edited it. So nobody can change the file.

chattr +i /etc/resolv.conf

Working on Linux file system. But it isn't real fix, just workaround

0

This is fixed when adding modules="dhcpcd" into /etc/conf.d/net.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .