Why does RHEL7 anaconda not write /etc/resolv.conf file if multiple DNS ip addresses are provided on command line?

Solution Verified - Updated -

Issue

  • If one installs Red Hat Enterprise Linux 7, with the following command line options, the file /etc/resolv.conf is not written appropriately.
> vmlinuz  initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.0\x20Server.x86_64 linux inst.ks=ftp://192.168.122.254/ks.cfg ip=192.168.122.200 netmask=255.255.255.0 gateway=192.168.122.1 dns=192.168.122.1,4.2.2.2 bootdev=eth0 
  • The contents of /etc/resolv.conf file is as follows after build.
[root@newrhel7 anaconda]# cat /etc/resolv.conf 
nameserver 10.68.5.26,10.38.5.26
  • This is syntactically wrong. If the Kickstart URL is mentioned with FQDN, the installation fails with an error that it can not resolve the name to IP.

Environment

  • Red Hat Enterprise Linux 7

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