Modify hosts file on Android without rooting device
This is not possible. You can, however, run your own DNS server on a local network, that could emulate this behaviour on all appliances that are connected via it.