# MicroK8s addon: dns

**URL:** <https://discuss.kubernetes.io/t/microk8s-addon-dns/22807>\
**Category:** microk8s\
**Tags:** docs\
**Created:** [January 23, 2023, 4:45pm UTC](https://discuss.kubernetes.io/t/microk8s-addon-dns/22807 "2023-01-23T16:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evilnick](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/evilnick/32/3481_2.png) [@evilnick](https://discuss.kubernetes.io/u/evilnick)\
**Post date:** [January 23, 2023, 4:45pm UTC](https://discuss.kubernetes.io/t/microk8s-addon-dns/22807/1 "2023-01-23T16:45:52Z")

</div>

This deploys CoreDNS to supply address resolution services to  
Kubernetes.

This service is commonly required by other addons, so it is  
recommended that you enable it.

```auto
microk8s enable dns

```

By default it points to Google’s `8.8.8.8` and `8.8.4.4` servers for resolving  
addresses. This can be changed when you enable the addon, for example:

```auto
microk8s enable dns:1.1.1.1

```

(for multiple DNS addresses, a comma-separated list should be used)

The forward dns servers can also be altered after enabling the addon  
by running the command:

```auto
microk8s kubectl -n kube-system edit configmap/coredns

```

This will invoke the `vim` editor so that you can alter the configuration.

The addon can be disabled at any time:

```auto
microk8s disable dns

```

…but bear in mind this could have implications for services and pods which  
may be relying on it.
