The docker run --dns does not resolve hostname and having hostname in resolv.conf does not work.

Docker-DCO-1.1-Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com> (github: adelton)
Merge pull request #6470 from adelton/dns-no-hostname

The docker run --dns does not resolve hostname and having hostname in resolv.conf does not work.