facebook / facebook/hhvm

hhvm only looks up first dns

Open
#7,907 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

### HHVM Version
```
HipHop VM 3.20.2 (rel)
Compiler: tags/HHVM-3.20.2-0-gad133f299ece0e45db8536473a8ef77cc4612ae3
Repo schema: 962ff68f0831a12b292f0eb9acd17f705a904446
```

### Standalone code, or other way to reproduce the problem
```
### /etc/resolv.conf
nameserver 8.8.8.8
nameserver 127.0.0.1
```

```
echo gethostbyname("mylocaldomain");
```
### Expected result
```
## local ip or whatever
127.0.0.1
```
### Actual result
```
mylocaldomain
```
If I use
```
### /etc/resolv.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
```
It works on hhvm.

Testing on `PHP 7.1.5` domain is resolved eitherway

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.