(unshare)# echo "nameserver 10.0.2.3" >/tmp/resolv.conf
(unshare)# mount --bind /tmp/resolv.conf /etc/resolv.conf
(unshare)# drill google.com @10.0.2.3
Error: error sending query: Could not send or receive, because of network error
(unshare)#
This should suppose to resolve google.com, but it failed. In host, I killed the previous slirp4netns process and then run again without --enable-sandbox like this
my /etc/resolve.conf was pointing to /var/run/systemd/resolve/stub-resolv.conf instead of /run/systemd/resolv/stub-resolv.conf. I fixed it now. everything works as expected
I cannot resolve dns queries with build-in dns address 10.0.2.3
In host, I run
Then, In guest, I run
This should suppose to resolve
google.com
, but it failed. In host, I killed the previousslirp4netns
process and then run again without--enable-sandbox
like thisThen, in guest, I run
I get proper result
Host Details