There's a know defect where GetAllNetworkInterfaces() throws an error when it doesn't have privileged access to the filesystem in docker. I'd recommend wrapping that call with its own exception handler and just parsing /etc/resolv.conf for nameservers as a final approach.
As a work around, I've done just that and then passed the resulting nameservers into your LookupClient for service discovery.
There's a know defect where GetAllNetworkInterfaces() throws an error when it doesn't have privileged access to the filesystem in docker. I'd recommend wrapping that call with its own exception handler and just parsing /etc/resolv.conf for nameservers as a final approach.
As a work around, I've done just that and then passed the resulting nameservers into your LookupClient for service discovery.