Why is -- dns not respected when --net is used?

I run into a problem where --dns is not respected when I use --net in a docker run.

Why is this and how to work round it if possible ?