Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Request: Choose custom DNS address #263

Open
moreorover opened this issue Sep 6, 2019 · 5 comments
Open

Request: Choose custom DNS address #263

moreorover opened this issue Sep 6, 2019 · 5 comments

Comments

@moreorover
Copy link

Hello all,

I think it would be handy to have this feature with this tool. I'm locally running a Pi-Hole server to block ads and trafficking. However every time a new computer is joined to the network manual adjustments required to be completed so all of the traffic goes through the local DNS server. I think it should be a nice feature to have where by default it is disabled but whoever finds it helpful may enable it and set the DNS address through the presets file.
This could possibly look something like this:
#IPv4PreferredDNSserver = 192.168.1.3
#IPv4AlternateDNSserver =
#IPv6PreferredDNSserver = 2a00:23c1:7c10:1c01:7515:9612:720:816b
#IPv6AlternateDNSserver =

Here is a further read how to do such thing through power shell.

image
image

@Disassembler0
Copy link
Owner

DNS setting is heavily a matter of personal preference and relies on 3rd party products and services, therefore it's not something I'd consider adding to the main tweak library. This is a perfect example for a tweak to be added to custom tweak library which are supported by the script.

Also somewhat a duplicate of #215.

@Disassembler0
Copy link
Owner

Actually, now that I think about it, you're talking about custom address, which is different (and more versatile) than #215. So I'm gonna keep this one open for version 4 where there is planned parametrization of tweaks and where this approach would fit.

@ndom91
Copy link

ndom91 commented Jan 26, 2020

@moreorover I know this is a bit late.. But if you want all devices on your network to use your pihole raspberry pi as their default DNS server, Id suggest making that change on your router (or whatever your using as your DHCP Server). Many consumer routers let you change the default DNS server the DHCP server sends to clients, and anything custom / enterprise should most definitely allow you to make that change.

@moreorover
Copy link
Author

@ndom91Appreciate for your reply. I can see where you are coming from with this, however, I would like to disagree with your opinion. I'm currently based in the UK and most of the broadband providers supply with routers that do not allow DNS changes sadly. The only option is to have a machine or a server in the middle of your computer and the router to filter out the unwanted requests to be made to the WWW. The feature in the request would come very handy in such cases.

@Disassembler0
Copy link
Owner

Setting preferred DNS servers on a client (i.e. Windows machine) is a perfectly valid and common action with lot of potential use cases, so this will be (eventually, hopefully) implemented.

Where and how should the DNS be ideally set wildly varies depending on circumstances and is subject to personal preferences. I'd like to avoid extended discussion on this topic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants