Generally you should use K8s services objects to define custom DNS mappings. However some advanced DNS setups might not be possible then, for example if you need to create wildcard DNS aliases.
In this case, you can create custom DNS records in the cluster's internal DNS service (kube-dns) by editing the coredns configmap like below.
Here we are adding the file
plugin to describe an authoritative zone containing a wildcard A record and we also create the required zone file.
apiVersion: v1
kind: ConfigMap