How to set dns options in /etc/resolv.conf via NetworkManager?

Solution Unverified - Updated -

Issue

We would like to have persistent DNS options in the file /etc/resolv.conf, but NetworkManager keeps erasing them every time it's restarted. How to configure NetworkManager so options stay at place?

Environment

Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In