Skip to content

hhvm only looks up first dns #7907

@ghost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions