I am having problems with my docker container which keeps losing connection to the internet - and it is suggested to edit /etc/resolv.conf from the host in order to use external dns.
Is it safe for me to remove the first line? Will removing it cause anything to break? (I guess the other nameserver entries were added by my dedicated server provider.)
Thanks Diabolico - apologies for not coming back sooner to say thanks!
I did try this, but unfortunately it didn’t help the Docker issue - which seems to be related to the CSF firewall I am running. (Docker adds some rules then CSF seems to wipe them periodically).
Thanks Diabolico - apologies for not coming back sooner to say thanks!
I did try this, but unfortunately it didn’t help the Docker issue - which seems to be related to the CSF firewall I am running. (Docker adds some rules then CSF seems to wipe them periodically).
Never used CSF but what i know it should be a software for advanced firewall management plus some extra on top of that. Not sure if you really need CSF but you could try to disable/remove and go back to classic iptables and for security use fail2ban. If your firewall still gets changed it could be that your host provider is doing this, e.g. changing the rules after each server restart.