Hi all,
I have recently started a project surrounding p4. I have followed the tutorial to install ONOS and p4, and have successfully created a mininet network with a bmv2 switch connected to ONOS.

I am facing an issue when running the mininet network with the --nat flag. Pings work perfectly when an IP address is used but fails on domain names. I have checked the iptables rules on the nat device and the masquerade rule appears to be correct. using tcpdump and wireshark, I can see that the private IP address is being transmitted to the DNS server which is causing it to fail. Any guidance on how to solve this would be appreciated!

Mininet command used to start network:
sudo -E mn --custom bmv2.py --switch onosbmv2 --topo single,3 --controller remote --nat