hhvm only looks up first dns
Open
- 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
Assessment
This issue has not been assessed yet.