Open In App

Web technologies Questions | Node.js Quiz | Set-2 | Question 9

Which DNS protocol is used to resolve the IPv4 address for the specified hostname ?
(A) dns.resolveNaptr()
(B) dns.resolve6()
(C) dns.resolvePtr()
(D) dns.resolve4()

Answer: (D)
Explanation: The dns.resolve4() is the method in node.js of the dns module which is used to resolve the IPv4 address for the specified hostname using DNS protocol. It takes parameters as hostname, option, and callback.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :