# Failed to resolve DNS

Source: https://forum.modalai.com/topic/2298/failed-to-resolve-dns
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-06-21 19:12:32 UTC by wilkinsaf
Replies: 9 · Views: 1525

## wilkinsaf · 2023-06-21 19:12:32 UTC

Getting a lot of DNS errors when using the Quectel 5G hat

here is one from tailscale

```
- not logged in, last login error=fetch control key: Get "https://controlplane.tailscale.com/key?v=63": failed to resolve "controlplane.tailscale.com": no DNS fallback candidates remain for "controlplane.tailscale.com"
```

I believe this is more of a Ubuntu issue than a modalai issue, but I thought I would track my progress here incase anyone else has issues

## Reply by wilkinsaf · 2023-06-21 19:22:40 UTC

seems like it is coming from resolvconf program

## Reply by wilkinsaf · 2023-06-21 19:40:17 UTC (in reply to wilkinsaf)

busybox udhcpc client might be the culprit

https://unix.stackexchange.com/questions/174349/what-overwrites-etc-resolv-conf-on-every-boot

## Reply by tom (ModalAI staff) · 2023-06-21 19:48:05 UTC (in reply to wilkinsaf)

@wilkinsaf I've had to use this script for some of the modem workflows in the past:

https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-modem/-/blob/master/scripts/enable-dns.sh

## Reply by wilkinsaf · 2023-06-21 19:58:14 UTC (in reply to tom)

@tom Gotcha, thanks! I was trying to figure out how to do it straight from the get go instead of a patch, but this is probably fine. 

Did you end up throwing it in a service file? wondering if I should create a script to wait for a ping to succeed and then activate the dns

## Reply by tom (ModalAI staff) · 2023-06-21 20:05:11 UTC (in reply to wilkinsaf)

@wilkinsaf Oh actually it does get called in the VOXL1 + quectel workflow it seems: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-modem/-/blob/master/scripts/voxl-modem-start#L200

but not the VOXL2 flow

## Reply by wilkinsaf · 2023-06-21 20:43:36 UTC (in reply to tom)

@tom here is a question...for voxl2 what should i set my modem to be if it is through quectel? Do i set it to "v2"?

## Reply by tom (ModalAI staff) · 2023-06-21 20:50:41 UTC (in reply to wilkinsaf)

@wilkinsaf It should be set to "quectel", you can use `voxl-configure-modem` to setup the config file

## Reply by wilkinsaf · 2023-06-21 20:54:39 UTC (in reply to tom)

@tom out of curiosity what is v2 for? is that the sierra wireless hat?

## Reply by tom (ModalAI staff) · 2023-06-21 21:13:44 UTC (in reply to wilkinsaf)

@wilkinsaf Yup, this guy: https://www.modalai.com/products/voxl-lte?variant=39300535681075
