unikraft / lib-musl

musl: A C standard library
Other
9 stars 29 forks source link

Option to handle DNS requesets by lwIP #74

Closed skuenzer closed 9 months ago

skuenzer commented 9 months ago

This PR introduces an option to use lwIP's DNS resolution for getaddrinfo(), getnameinfo(), gethostbyname(), and family. It can be enabled if lwIP is available. It will enable lwIP's DNS and socket interfaces. The advantages of this implementation is that 1) there needs to place an /etc/resolv.conf in the VFS, 2) Works with DNS servers that lwIP got assigned with a DHCP reply.

This PR depends on PR #48 for lib/lwip.

skuenzer commented 9 months ago

Ouh sorry, you need to have the following lwip PR also applied. I forgot to mention that dependency in the description: https://github.com/unikraft/lib-lwip/pull/48