How to set DNS options (ndots, timeout, attempts) in nmstate?

Solution Verified - Updated -

Issue

  • How to set DNS options (ndots, timeout, attempts) in nmstate?
  • nmstate doesn't seem to support resolv.conf options
dns-resolver:
  config:
    search:
      - example.com
    server:
      - 192.2.0.1
    options:
      - timeout:2

Environment

  • Red Hat Enterprise Linux 9.3
    • nmstate-2.2.15-2.el9_2 and earlier
  • Red Hat Enterprise Linux 8.9
    • nmstate-1.4.4-3.el8 and earlier

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