Skip to content

dns issue with wsl #52

@remip2

Description

@remip2

Hi,

I'm trying to use greywall in wsl (ubuntu22.04), I'm using internal dns and vllm servers.

My local dns configuration is not applied in the greywall sandbox:

$ curl https://ai.internal.int/v1/models
{...}

$ greywall --profile opencode -- curl https://ai.internal.int/v1/models
curl: (6) Could not resolve host: ai.internal.int

My dns is configured with systemd
DNS= <local ip> in /etc/systemd/resolved.conf
which generates /etc/resolv.conf link to /run/systemd/resolve/resolv.conf

nameserver <local ip>
search .

Out of the sandbox:

dig @localhost -p 43053 ai.internal.int

; <<>> DiG 9.18.39-0ubuntu0.22.04.2-Ubuntu <<>> @localhost -p 43053 ai.internal.int
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28594
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;ai.internal.int.              IN      A

;; AUTHORITY SECTION:
int.                    3600    IN      SOA     sns.dns.icann.org. noc.dns.icann.org. 2026030636 3600 1800 604800 3600

;; Query time: 151 msec
;; SERVER: 127.0.0.1#43053(localhost) (UDP)
;; WHEN: Tue Mar 24 14:17:55 CET 2026
;; MSG SIZE  rcvd: 118

greyproxy doesn't use my dns configuration.

How can I manually configure the dns in the greyproxy ?

I'm running a build from main to solve #35

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions