So you want to use access local domain name on your iDevice, such as mac.home, ubuntu.local? Unfortunately iDevice wouldn't allow you editing system files, in this case, /etc/hosts.
Workaround:
Install dnsmasq on a local server, and change iPad DNS to your local server
Install charles proxy, enable DNS Spoofing feature, on iPad, change proxy server to IP where charles installed.