Good afternoon,
The gateway will use the local OS system resolver for hostnames where it is installed so either a configured DNS server in /etc/resolv.conf or static entries in /etc/hosts. I would also recommend reviewing the configuration of the resolver order on the OS to make sure that the file is viewed first ( /etc/nsswitch.conf).
Sincerely,
Stephen Hughes
Director, CA Support