# std.net: check for localhost names before asking DNS · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3ab43988c1cc5e22c84faccd1816df6e8094d9a3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3ab43988c1cc5e22c84faccd1816df6e8094d9a3

Requested commit: 3ab43988c1cc5e22c84faccd1816df6e8094d9a3

Commit: 3ab43988c1cc5e22c84faccd1816df6e8094d9a3

Tree: a18a20aa1c5f1896918c580853b1c5dde7215521

Author: praschke

Committer: Andrew Kelley

## Message

```
std.net: check for localhost names before asking DNS

the old implementation asks DNS before checking if it shouldn't.
additionally, it did not catch absolute 'localhost.' names.

```

## Parents

- [9b807f9c171e9e5998447ab3846d29de921cf8dd](https://git.cafe/gitcafe/zig/commit/9b807f9c171e9e5998447ab3846d29de921cf8dd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3ab43988c1cc5e22c84faccd1816df6e8094d9a3?format=markdown)
