xip.io is a magic domain name that provides wildcard DNS for any IP address. Say the local IP is 10.0.0.1 - this works:

  foo.bar.10.0.0.1.xip.io   resolves to   10.0.0.1

Source: xip.io