Quantcast
Channel: Overriding DNS entries per process - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 2

Overriding DNS entries per process

$
0
0

I'm trying to have local tests working without running consul as DNS server. Which means I'm trying to map web.service.consul to localhost.

I've tried creating HOSTALIASES file but it seems it doesn't support dot in the alias name. I also tried playing with LOCALDOMAIN and RES_OPTIONS=ndots:10 but can't get this to work.

$ HOSTALIASES=/tmp/ha RES_OPTIONS=ndots:10 LOCALDOMAIN='consul' curl web.services.consul:8080curl: (6) Could not resolve host: web.services.consul$

Where /tmp/ha is

web.services.consul 127.0.0.1

Any ideas? Thanks.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images