IoT.js provides dns module.
hostname: String
options: Object | Number
callback: Function(err: Error, address: String, family: Number)
Resolves a hostname into the first found A (IPv4) or AAAA (IPv6) record.
hostname: String
rrtype: String
callback: Function(err: Error, addresses: [String])
Resolves a hostname into an array of all records.
ip: String
callback: Function(err: Error, addresses: [String])
Inverse of dns.resolve()
. Resolves an ip address into an array of all hostnames.