Skip to content

Commit 3bf3e3b

Browse files
Giotinosindresorhus
andauthoredOct 5, 2020
Add lookup option documentation (#1483)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
1 parent c31366b commit 3bf3e3b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎readme.md

+9
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,15 @@ await got('https://api6.ipify.org', {
655655
});
656656
```
657657

658+
###### lookup
659+
660+
Type: `Function`\
661+
Default: [`dns.lookup`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback)
662+
663+
Custom DNS resolution logic.
664+
665+
The function signature is the same as [`dns.lookup`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback).
666+
658667
###### request
659668

660669
Type: `Function`\

0 commit comments

Comments
 (0)
Please sign in to comment.