# Can't change DNS

**URL:** https://dietpi.com/forum/t/cant-change-dns/5524
**Category:** Troubleshooting
**Created:** [15 July 2021 18:08 UTC](https://dietpi.com/forum/t/cant-change-dns/5524 "2021-07-15T18:08:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DonLiborio](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@DonLiborio](https://dietpi.com/forum/u/DonLiborio)
#### Post date: [15 July 2021 18:08 UTC](https://dietpi.com/forum/t/cant-change-dns/5524/1 "2021-07-15T18:08:49Z")

</div>

Even though I have enabled “Static DNS” the Ethernet Details keep saying “DNS = 127.0.0.1”. If I change to DHCP it still fails to use the router’s DNS. What am I doing wrong?

```nohighlight
Ethernet Details: │
│ Usage : Sent = 6 MiB | Recieved = 0 MiB │
│ Address : IP = 192.168.0.19 | Mask = 255.255.255.0 | Gateway = 192.168.0.1 | │
│ DNS = 127.0.0.1 │
│ │
│ ●─ DHCP/STATIC IP ──────────────────────● │
│ Change Mode : [STATIC] │
│ Copy : Copy current address to "Static" │
│ Static IP : [192.168.0.19] │
│ Static Mask : [255.255.255.0] │
│ Static Gateway : [192.168.0.1] │
│ Static DNS : [8.8.8.8 8.8.4.4]

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [15 July 2021 21:12 UTC](https://dietpi.com/forum/t/cant-change-dns/5524/2 "2021-07-15T21:12:28Z")

</div>

Hi,

can you share following

```nohighlight
cat /etc/resolv.conf
readlink -f /etc/resolv.conf

```
