I'm currently attempting to get dagger to talk to some services on my tailscale network. I'm able to get a dagger container to join the tailnet just fine. However the tailnet uses split DNS to point some internal domains at specific nameservers. Without being able to access those name servers, the dagger code won't be be able to resolve tailnet names.
Once joined to the tailnet, the dagger code is able to manually resolve the names if I point it at the right nameserver, but this obviously doesn't work if e.g. the code was going to be used for arbitrary CI pipelines. Perhaps I'm being optimistic here, but it seems like I Just(tm) need to be able to add a resolver line to /etc/resolv.conf. However no matter what I do affect any changes in this direction. I think this is related to dagger/buildkit taking control of resolv.conf. Changes seem to be overwritten with a basic DNS config and some dagger specifc services stuff.
Any ideas here? I see that there was some discussion around split dns resolution a while back, but it didn't seem like there was any solution then.