[kwlug-disc] wrapping DNS calls per process
Jason
jasonpa at gmail.com
Wed Jul 9 15:43:22 EDT 2025
Can you run this process in a container - LXC/Docker? Then you could
control the networking separately from the main machine, including DNS
requests. This would give you better resource isolation anyway.
Alternatively, you could set up a Linux networking namespace, and bind all
the commands this process uses to use that namespace, so you can isolate
all of the networking configuration to be separate from the main system.
This is what containers use under the hood, you could just set it up
manually, and this would create a Linux virtual network interface for the
process to use.
For reference: https://man7.org/linux/man-pages/man8/ip-netns.8.html
Cheers,
Jason
On Wed, Jul 9, 2025 at 1:59 PM Mikalai Birukou via kwlug-disc <
kwlug-disc at kwlug.org> wrote:
> Context:
> Tor project makes oniux. When in linux one starts process, e.g. ```
> oniux bash ```, it moves networking via tor process.
>
> Question:
> Is there a similar trick for DNS only. So that we can run some test
> process, and inside of it all DNS requests can be set the way testing
> needs.
>
>
>
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20250709/6c1cae53/attachment.htm>
More information about the kwlug-disc
mailing list