How to add arbitrary records to Kube-DNS

Need custom DNS records inside your Kubernetes cluster? Here are two approaches: per-pod hostAliases and cluster-wide CoreDNS configuration.