I have the following setup:
On myhost2:
On mycontainer1:
So this is not (I guess) a DNS issue as nslookup queries work fine from the container, but I can't figure out why other application (like ping or wget) can't get the resolved ip..
Thanks for sharing your ideas !
That behavior may be caused by the option ndots:0
in /etc/resolv.conf
which prevents ping from adding your default local domain.
In this situation, ping myhost1.mydomain.lan
should work, where ping myhost1
should not (and the same with wget).
So I suggest you can try to change it to ndots:5
.
For example :
nameserver 127.0.0.11
options ndots:5