# Name resolution fails after a few days/weeks

**URL:** <https://forum.legato.io/t/name-resolution-fails-after-a-few-days-weeks/4599>\
**Category:** Legato Application Framework\
**Created:** [July 30, 2019, 12:04pm UTC](https://forum.legato.io/t/name-resolution-fails-after-a-few-days-weeks/4599 "2019-07-30T12:04:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.legato.io/u/karlkuhn)\
**Post date:** [July 30, 2019, 12:04pm UTC](https://forum.legato.io/t/name-resolution-fails-after-a-few-days-weeks/4599/1 "2019-07-30T12:04:59Z")

</div>

–Updated–

Hi, I am running 16.10.1.m3 on an FX30s and am having problems with name resolution within my application after a period of time. It works fine for a while and after a few days/weeks it gets itself into a state, where it will not resolve the hostname within my app. I get “system error” as the result code to “getaddrinfo”.

But it will resolve it if using nslookup from the terminal. Below is the trace. Towards the bottom you will notice “_ **Could not save the default gateway** _” which presumably is my problem.

However I can’t work out why this is a problem and how to get around it without rebooting the modem. After a reboot it works again for a while.

PS my APN profile is set up with IPV4 only (i.e. not IPV4V6 or IPV6)

Thanks,  
Karl

> Jul 30 11:59:18 fx30s user.err Legato: =ERR= | modemDaemon[579]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 781 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
> Jul 30 11:59:18 fx30s user.warn Legato: -WRN- | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c SetDefaultGateway() 1052 | Default gateway or interface is empty  
> Jul 30 11:59:18 fx30s user.info Legato: INFO | modemDaemon[579]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2211 | called  
> Jul 30 11:59:18 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c CellNetStateHandler() 2250 | Device is attached, ready to start a data session  
> Jul 30 11:59:18 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c TryStartDataSession() 1638 | Delaying data connection attempt.  
> Jul 30 11:59:23 fx30s user.err Legato: =ERR= | modemDaemon[579]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 781 | Sending QMI\_WDS\_GET\_RUNTIME\_SETTINGS\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]  
> Jul 30 11:59:23 fx30s user.warn Legato: -WRN- | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c SetDefaultGateway() 1052 | Default gateway or interface is empty  
> Jul 30 11:59:23 fx30s user.info Legato: INFO | modemDaemon[579]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2211 | called  
> Jul 30 11:59:23 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c CellNetStateHandler() 2250 | Device is attached, ready to start a data session  
> Jul 30 11:59:26 fx30s user.warn Legato: -WRN- | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c SetModemGateway() 1603 | Could not save the default gateway  
> Jul 30 11:59:26 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c AddNameserversToResolvConf() 1281 | Set DNS ‘8.8.8.8’ ‘212.9.0.136’

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [March 20, 2020, 1:41pm UTC](https://forum.legato.io/t/name-resolution-fails-after-a-few-days-weeks/4599/2 "2020-03-20T13:41:00Z")

</div>

@karlkuhn, If you still have the issue, can you please take just the app logs with “logread -f | grep ” when the issue is happening?

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.legato.io/u/karlkuhn)\
**Post date:** [March 20, 2020, 2:10pm UTC](https://forum.legato.io/t/name-resolution-fails-after-a-few-days-weeks/4599/3 "2020-03-20T14:10:59Z")

</div>

Hi @mehdiALL1, thanks for your reply. Yes this problem still happens. I have gotten around it by restarting the device daily and restarting if I can’t resolve the address.

I will try collect logs on this… But it may take a little while. I was hoping this was resolved in the later versions, which is why I have been so keen for R17 (FX30) to come out now for months… over a year I think?

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [March 20, 2020, 2:39pm UTC](https://forum.legato.io/t/name-resolution-fails-after-a-few-days-weeks/4599/4 "2020-03-20T14:39:53Z")

</div>

@karlkuhn, honestly, I don’t know when the R17 will be released.
