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

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

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

Visibility: public

Requested revision: 0a03d68594374698b5d751530d6ee7f47a2f75b3

Requested commit: 0a03d68594374698b5d751530d6ee7f47a2f75b3

Commit: 0a03d68594374698b5d751530d6ee7f47a2f75b3

Tree: eb48cc503c65299c19d8a3e95610b8c46176f3dc

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

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

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