实现的注意事项


【Implementation considerations】

虽然 dns.lookup() 和各种 dns.resolve*()/dns.reverse() 函数的目标都是将网络名称与网络地址关联(或反之),但它们的行为却有很大不同。这些差异可能对 Node.js 程序的行为产生微妙但重要的影响。

【Although dns.lookup() and the various dns.resolve*()/dns.reverse() functions have the same goal of associating a network name with a network address (or vice versa), their behavior is quite different. These differences can have subtle but significant consequences on the behavior of Node.js programs.】