How can I specify multiple nameserver values in network line of Red Hat Enterprise Linux 8 kickstart?

Solution Verified - Updated -

Issue

  • How can I specify multiple nameserver values in network line of Red Hat Enterprise Linux 8 kickstart?
  • The following line only puts the last nameserver value in /etc/resolv.conf file, is the syntax correct?
network --device=ens160 --bootproto=static --ip=192.168.0.100 --netmask=255.255.255.0 --gateway=192.168.0.1 --nameserver=192.168.0.1 --nameserver=192.168.0.2

Environment

  • Red Hat Enterprise Linux 8.0
  • kickstart

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