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

Solution Verified - Updated -

Issue

  • How to set DNS options in /etc/resolv.conf via NetworkManager?
  • 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?
  • How do I make DNS options persistent like timeout with NetworkManager connections?
  • We have added option single-request-reopen manually to resolv.conf. Can we retain this configuration via NetworkManager? Please share the process.
  • How to use NetworkManager to set options in resolv.conf?
  • NetworkManager overwrites options in /etc/resolv.conf on each reboot or restart of the service.
  • How can I configure Network Manager via nmcli to add the option parameters in resolv.conf in RHEL?

Environment

  • Red Hat Enterprise Linux 7 and later
  • NetworkManager

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content