gitlab-pages cannot connect to internal Pages API due to use local dns server

Summary

gitlab-pages use local dns ([::1]:53, [::1]:45621-\u003e[::1]:53), which failed to resolve gitlab instance hostname, and cannot connect to gitlab api.

Steps to reproduce

enable gitlab page in GITLAB_OMNIBUS_CONFIG

external_url 'https://gitlab-nautilus.spiral.exchange'
registry_external_url 'https://registry-gitlab-nautilus.spiral.exchange'
nginx['listen_port'] = 80
nginx['listen_https'] = false
nginx['status'] = {
  "enable" => false
}
gitlab_pages['enable'] = true
pages_external_url "http://pages-gitlab-nautilus.spiral.exchange"

Restart gitlab container, check log at /var/log/gitlab/gitlab-pages/current:

{"error":"failed to connect to internal Pages API: Get \"https://gitlab-nautilus.spiral.exchange/api/v4/internal/pages/status\": dial tcp: lookup gitlab-nautilus.spiral.exchange on [::1]:53: read udp [::1]:54031-\u003e[::1]:53: read: connection refused","level":"warning","msg":"attempted to connect to the API","time":"2021-04-27T01:52:14Z"}

/etc/resolve.conf

search gitlab.svc.cluster.local svc.cluster.local cluster.local
nameserver 10.43.0.10
options ndots:5

What is the current bug behavior?

gitlab-pages uses localhost unexisted dns server [::1]:53, [::1]:54031-\u003e[::1]:53

What is the expected correct behavior?

gitlab-pages should use correct dns server in /etc/resolve.conf

Relevant logs

Relevant logs
{"error":"failed to connect to internal Pages API: Get \"https://gitlab-nautilus.spiral.exchange/api/v4/internal/pages/status\": dial tcp: lookup gitlab-nautilus.spiral.exchange on [::1]:53: read udp [::1]:54031-\u003e[::1]:53: read: connection refused","level":"warning","msg":"attempted to connect to the API","time":"2021-04-27T01:52:14Z"}

Details of package version

Provide the package version installation details
docker image: gitlab/gitlab-ce:13.11.1-ce.0