Implement DNS module (#1691)

* Boilerplate for DNS stuff

* Add c-ares

* lookup

* make

* Implement dns.lookup

* Create c-ares

* wip

* normalize

* repro

* Revert "repro"

This reverts commit 8b93e0c295b335b8882a9601da47720348549beb.

* Implement macOS `getaddrinfo_async_start`

* embiggen

* Update string_immutable.zig

* Update Makefile

* alright

* Update .gitignore

* Add types

* more ccache

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update bun.d.ts

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2023-01-07 07:09:48 -08:00
committed by GitHub
parent d5565ab2cd
commit 87983464d8
31 changed files with 2782 additions and 60 deletions

View File

@@ -3974,6 +3974,14 @@ pub fn isIPAddress(input: []const u8) bool {
}
}
pub fn isIPV6Address(input: []const u8) bool {
if (std.net.Address.parseIp6(input, 0)) |_| {
return true;
} else |_| {
return false;
}
}
pub fn cloneNormalizingSeparators(
allocator: std.mem.Allocator,
input: []const u8,