NLnetLabs / unbound

Unbound is a validating, recursive, and caching DNS resolver.
https://nlnetlabs.nl/unbound
BSD 3-Clause "New" or "Revised" License
3.15k stars 358 forks source link

[FR] Listen on Unix Domain Socket instead of TCP/UDP port #634

Open murty2 opened 2 years ago

murty2 commented 2 years ago

Is it possible to configure Unbound to listen on Unix Domain Socket, instead of tcp/udp port? I use Unbound on my local machine only

JiangHeng12138 commented 2 years ago

The DNS client(dig, nslookup, etc) does not support Unix Domain Socket.

murty2 commented 2 years ago

My DNS client (OpenLiteSpeed webserver) does

DavidOsipov commented 2 years ago

A use case for that:

Adguard home or Pi-hole asks Unbound via Unix Domain socket instead of a TCP/UDP port, thus killing any possible overhead.

kkkgo commented 1 year ago

I also have the same idea. When Unbound is used as an upstream for other DNS server programs, this is a very good feature.