apiVersion: v1
data:
  Corefile: |
      .:5353 {
            errors
            log
            health
            rewrite stop name exact lnxocp01 sshd-0.bastion-z.svc.cluster.local
            rewrite stop name exact lnxocp02 sshd-1.bastion-z.svc.cluster.local
            rewrite stop name exact lnxocp03 sshd-2.bastion-z.svc.cluster.local
            rewrite stop name regex ^.*libvirt-s390x-([0-9])-[0-9]\.$ sshd-{1}.bastion-z.svc.cluster.local
            forward . /etc/resolv.conf {
                policy sequential
            }
            cache 3600
      }

kind: ConfigMap
metadata:
  name: coredns-config-z
  namespace: bastion-z
