On OpenShift see https://access.redhat.com/solutions/7070905
We are going to be adding a host alias for example.com in this example by adding the following to the coredns configmap:
...
Code Block |
---|
root@ssh-server-5bd5774cf7-fgvt4:/# nslookup example.com Server: 10.96.0.10 Address: 10.96.0.10#53 Name: example.com Address: 1.2.3.4 |
References
Reference | URL |
---|---|
** Add a Custom Host to Kubernetes | https://hjrocha.medium.com/add-a-custom-host-to-kubernetes-a06472cedccb |
Coredns Host Plugin | https://coredns.io/plugins/hosts/ |
Customizing DNS Service | https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/ |
Debugging DNS Resolution | https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/ |
Custom DNS Entries For Kubernetes | https://coredns.io/2017/05/08/custom-dns-entries-for-kubernetes/ |
CoreDNS: How to add custom A records in OpenShift 4 | https://access.redhat.com/solutions/7070905 |