You need to have a DNS server configured that fully resolves hostname to IP address on your devices and need to be able to do an nslookup forward and reverse.
You could try looking at your /etc/hosts file for hosts or resolv.conf for your DNS servers.