Why does RHEL7 anaconda not write /etc/resolv.conf file if multiple DNS ip addresses are provided on command line?
Issue
- If one installs Red Hat Enterprise Linux 7, with the following command line options, the file
/etc/resolv.confis 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.conffile 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
