The 10.0.0.0 is a private LAN address space. If you run your own DNS server, then dig and nslookup will work.
If you don't, but you maintain an /etc/hosts file, try "getent hosts <ip-address>". The getent hosts command will work for public IPs as well.
getent hosts 18.104.22.168
I'm not certain if using avahi-dns whether a reverse lookup will work. You can find the IP address of a hostname with "getent hosts hostname.local" or using ping "ping -c2 hostname.local".