# Sanboxed app fails to resolve host name

**URL:** <https://forum.legato.io/t/sanboxed-app-fails-to-resolve-host-name/3394>\
**Category:** Legato Application Framework\
**Created:** [July 2, 2018, 12:57pm UTC](https://forum.legato.io/t/sanboxed-app-fails-to-resolve-host-name/3394 "2018-07-02T12:57:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sowvikroy](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sowvikroy](https://forum.legato.io/u/sowvikroy)\
**Post date:** [July 2, 2018, 12:57pm UTC](https://forum.legato.io/t/sanboxed-app-fails-to-resolve-host-name/3394/1 "2018-07-02T12:57:13Z")

</div>

I am building an IoT app with legato and [MbedTLS](https://github.com/ARMmbed/mbedtls).  
If I connect to a host address using TLS with sanboxed:true in the .adef, then the app fails to resolve the hostname. But it works fine if I set sanboxed:false. Is there any way to get the hostname resolved from a sandboxed app?

---

<div class="post-metadata">

**Author:** ![nvd](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nvd](https://forum.legato.io/u/nvd)\
**Post date:** [July 2, 2018, 8:44pm UTC](https://forum.legato.io/t/sanboxed-app-fails-to-resolve-host-name/3394/2 "2018-07-02T20:44:19Z")

</div>

Hey @sowvikroy,

I suspect you need to grant access to some required lib files. You can see an example of how to do this here: [legato-af/httpServer.adef at master · legatoproject/legato-af · GitHub](https://github.com/legatoproject/legato-af/blob/master/apps/sample/httpServer/httpServer.adef)

Cheers!

---

<div class="post-metadata">

**Author:** ![sowvikroy](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sowvikroy](https://forum.legato.io/u/sowvikroy)\
**Post date:** [July 3, 2018, 5:55am UTC](https://forum.legato.io/t/sanboxed-app-fails-to-resolve-host-name/3394/3 "2018-07-03T05:55:21Z")

</div>

working fine after giving access to the required lib files:

file:  
{

```
    // needed for networking:
    /lib/libnss_compat.so.2 /lib/
    /lib/libnss_files.so.2 /lib/
    /lib/libnss_dns.so.2 /lib/
    /lib/libresolv.so.2 /lib/
    /etc/nsswitch.conf /etc/
    /etc/hosts /etc/
    /etc/resolv.conf /etc/

}

```

Thanks
