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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In