Am 17.10.2016 um 13:52 schrieb Petrusko:
# chattr +i /etc/resolv.conf
Exact it works fine :)
Please only do this if your are sure your server is not running in a Virtuozzo/OpenVZ container environment. On Virtuozzo, the startup procedure includes scripts that rewrite resolv.conf and fail if they can't write to it. In these cases you could be left with an unbootable container and have to raise a support ticket with your ISP to make them "fix" the issue by removing the immutable bit and starting the container again.
In these cases it would be better to have an init script, cron job or configuration management system overwrite resolv.conf with the values you want.
Regards, Helmut