Foreman-installer Fails Exit Code 20

Problem:
I am trying to install Foreman on a VM which is using an internal IP address of 10.0.0.144. My DNS name servers in /etc/hosts are set to 8.8.8.8. When running the installer I get “Unable to resolve forward DNS for app17.mgmt” I tried adding 10.0.0.144 to our internal DNS server running on 10.0.0.5 and running the installer again with “foreman-installer --foreman-proxy-dns-server=10.0.0.5” but got the same result. Is there a way to bypass this check?

Expected outcome:
Install completes without issues.

Foreman and Proxy versions:
Everything is running the latest version as of 8/2
Foreman and Proxy plugin versions:

Distribution and version:
RHEL 8

Other relevant data:
2021-08-02 15:08:41 [DEBUG ] [root] Warning: /etc/foreman-installer/custom-hiera.yaml: file does not contain a valid yaml hash

2021-08-02 15:08:41 [INFO ] [root] … finished loading default values from puppet modules.
2021-08-02 15:08:41 [INFO ] [pre_values] Executing hooks in group pre_values
2021-08-02 15:08:41 [INFO ] [pre_values] All hooks in group pre_values finished
2021-08-02 15:08:41 [DEBUG ] [root] Running installer with args [["-l", “debug”]]
2021-08-02 15:08:41 [NOTICE] [root] Running installer with log based terminal output at level DEBUG.
2021-08-02 15:08:41 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2021-08-02 15:08:42 [DEBUG ] [checks] Executing checker: /usr/share/foreman-installer/checks/dns.rb
Unable to resolve forward DNS for app17.mgmt
2021-08-02 15:08:47 [DEBUG ] [checks] Executing checker: /usr/share/foreman-installer/checks/hostname.rb
2021-08-02 15:08:53 [DEBUG ] [checks] Executing checker: /usr/share/foreman-installer/checks/lang.rb
Your system does not meet configuration criteria
2021-08-02 15:08:53 [DEBUG ] [root] Exit with status code: 20 (signal was invalid_system)
2021-08-02 15:08:53 [DEBUG ] [root] Cleaning /tmp/kafo_installation20210802-3315-1gpnmh7
2021-08-02 15:08:53 [DEBUG ] [root] Cleaning /tmp/default_values.yaml
2021-08-02 15:08:53 [DEBUG ] [root] Installer finished in 11.62317158 seconds

Correct DNS resolution is important.

There’s your problem. Google’s resolvers will never resolve your internal hostnames.

That installer option configures the Foreman Proxy’s DNS module, but not the system resolver. That’s done in /etc/resolv.conf.