docker network create mcvlan -d macvlan ...
docker run -it -d --rm --name angry_ahab --network mcvlan alpine
docker run -it --rm --name malicious_melville --network mcvlan alpine
# now inside the malicious_melville container...
ping angry_ahab
# PING angry_ahab (172.16.86.2): 56 data bytes
# 64 bytes from 172.16.86.2: seq=0 ttl=64 time=0.228 ms
# ...
So, Docker's embedded DNS resolver also supports MACVLAN custom networks.