Hi
Can anyone please tell me, why every time codesys boots on the PLC, it rewrites the /etc/resolv.conf file.
Regards
anyone from Codesys that can answer?
Are you sure that it's Codesys and not some daemon like dhcpcd or NetworkManager?
Well if I power cycle the PLC, it gets rewritten... so im not sure what rewrites it everytime. is there a way to determine what is doing it?
https://unix.stackexchange.com/questions/174349/what-overwrites-etc-resolv-conf-on-every-boot https://unix.stackexchange.com/questions/483619/resolv-conf-overwritten-every-time https://stackoverflow.com/questions/15368217/how-to-prevent-etc-resolv-conf-from-getting-overwritten-after-reboot-in-ubuntu
I know on the pi-based systems you need to be editing /etc/dhcpcd.conf to configure the network correctly.
Editing resolv.conf manually and trying to keep it from changing is not worth the hassle anymore. I do miss it though.
Log in to post a comment.
Hi
Can anyone please tell me, why every time codesys boots on the PLC, it rewrites the /etc/resolv.conf file.
Regards
Last edit: happychappy 2022-09-21
more posts ...
anyone from Codesys that can answer?
Are you sure that it's Codesys and not some daemon like dhcpcd or NetworkManager?
Well if I power cycle the PLC, it gets rewritten... so im not sure what rewrites it everytime. is there a way to determine what is doing it?
https://unix.stackexchange.com/questions/174349/what-overwrites-etc-resolv-conf-on-every-boot
https://unix.stackexchange.com/questions/483619/resolv-conf-overwritten-every-time
https://stackoverflow.com/questions/15368217/how-to-prevent-etc-resolv-conf-from-getting-overwritten-after-reboot-in-ubuntu
I know on the pi-based systems you need to be editing /etc/dhcpcd.conf to configure the network correctly.
Editing resolv.conf manually and trying to keep it from changing is not worth the hassle anymore. I do miss it though.