Specific DNS

I want to use cloudflare dns for only 1 application, how do I do this?

Welcome to the forum!

I believe what you'd be looking for is something along the lines of Firejail:
Firejail | security sandbox

Once you've got it installed, you should be able to use the command below (as en example) to force the telegram-desktop application to run with the dns set to what you need it to be.

firejail --dns=1.1.1.1 telegram-desktop
5 Likes

I installed firejail and typed discord-desktop instead of telegram-desktop but got an error

Do you know how you have discord installed? By flatpak or Deb? For example if it's Deb then for me the command to launch works using just discord. If it's flatpak it would be under ~/.var/app/discord/more other different path (I dont have it installed as a flatpak so I can't check currently).

I would recommend, if you have it installed as a flatpak currently, to remove and install as a deb. It will avoid some headaches that oftentimes comes with using a flatpak.

1 Like

I downloaded it via flatpak, deleted it and downloaded it as .deb problem solved thanks for your help

2 Likes

glad to hear! any other questions, feel free to come back and ask some more :slight_smile:

1 Like