Currently, if the bastion machine is assigned IP address with DHCP, it also receive the DNS server from DHCP
server. Although the resolv.conf can be updated by adding the bastion address through NetworkManager
ifcfg script, its address would be put below the DNS addresses from DHCP and that will make looking up a name
for the OCP cluster fail. To put it on the top in the generated resolv.conf, the following line should be added to the
/etc/dhcp/dhclient.conf:
prepend domain-name-servers [ip address of bastion];
A task would be needed to replace the generate dns with interface script.task if using DHCP.
Currently, if the
bastion
machine is assigned IP address with DHCP, it also receive the DNS server from DHCP server. Although theresolv.conf
can be updated by adding thebastion
address through NetworkManager ifcfg script, its address would be put below the DNS addresses from DHCP and that will make looking up a name for theOCP
cluster fail. To put it on the top in the generatedresolv.conf
, the following line should be added to the/etc/dhcp/dhclient.conf
:A task would be needed to replace the
generate dns with interface script
.task if using DHCP.