This code uses the LookupIPAddr function from the net package to perform a DNS lookup for the IP address of the domain google.com. The context package is used to set a timeout of 5 seconds for the DNS lookup to prevent the program from hanging indefinitely. Finally, the first IP address returned by the DNS lookup is printed to the console.
forked from nitainedvetzki/myrepo
-
Notifications
You must be signed in to change notification settings - Fork 0
nitaiapiiro/myrepo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 44.6%
- Go 41.4%
- Python 14.0%