1. Custom DNS goes in /jffs/configs/dnsmasq.conf.add
address=/test.com/www.test.com/127.0.0.1
address=/test.com/www.test.com/::1
service restart_dnsmasq
address=/test.com/www.test.com/127.0.0.1
address=/test.com/www.test.com/::1
service restart_dnsmasq