3
votes

I am running a Kubernetes Cluster on Google Container Engine with the default SkyDNS implementation enabled.

How can I add custom DNS Entries in Google Container Engine? Is there any way to:

  1. Add custom DNS Entries to SkyDNS that will persist if the SkyDNS container is restarted?
  2. Change the default DNS Settings on my nodes to a custom DNS Server, which in-turn will forward to SkyDNS?
  3. Change the Forward DNS of SkyDNS to my custom DNS Server?

Edit: If trying to resolve a Google Compute Engine VM from inside a container, the default DNS Server that Google Container Engine uses will resolve VM Names in the formats:

<vm-name>.c.<project-name>.internal
<vm-name>.<project-id>.google.internal
1
You should look at my answer on a similar question stackoverflow.com/a/43468742/1425670 - Raboo

1 Answers

2
votes

At the moment there is not any API to directly manipulate DNS within the cluster. It's something we want to do but have not tackled yet.

Can you explain what you're hoping to achieve?

Edit: if you want to run Consul, nothing is stopping you. Our DNS server is just one implementation.