I got Android custom VM working with Gateway by installing DHCP server.
Since DHCP server can’t be trusted, I want to configure Android with static IP. So I started with a fresh Gateway without DHCP.
I’ve updated my solution from another thread and the Wiki here. There appear to be regular searches and queries for this type of setup, so hopefully this one is better for visibility.
Solved! Use the following:
su ifconfig eth0 10.152.152.12 netmask 255.255.192.0 ip rule add from all lookup main pref 0 busybox route add default gw 10.152.152.10 ndc resolver setnetdns 100 localdomain 10.152.152.10
DNS now works. DHCP need not apply.