You are not logged in.

#1 2019-03-26 18:37:41

KeyPercentage9
Member
Registered: 2019-03-24
Posts: 13

Dns for all home devices

Wifi Router/modem (same device) provided by ISP. Runs DHCP server.

Arch box connects to router via wifi. Runs dns server (https://wiki.archlinux.org/index.php/Knot_Resolver) and listens on all interfaces.

Other devices - iphone, android, ubuntu laptop connect to the wifi router.

I am trying to get all dns traffic via the arch box so that I can keep track of logs in one place and add virtual domains resolvable in those devices. For e.g. my photoupload.myexampledomain.com should resolve to my vps address outside home and to my arch box addr (192.168.0.x) when at home wifi.

I added the ip of arch box in the static dns list in wifi router web admin interface. All devices get my dns server as the first one and also the ISP dns servers. They also get ISP dns servers for ipv6. The router does not have an option to set ipv6 dns servers.

Ubuntu laptop does not use my dns server if ipv6 is enabled. Even when I disable ipv6, sometimes it works and sometimes not. Android does not use my dns server and there no config to try disabling ipv6.

My goal is not get all devices working without any changes. I am thinking to disable the DHCP server on the router and run dhcp and dhcp6 on arch box. This way all devices will get only my dns server list in both ipv4 and ipv6. Will this work? How exactly does that work? Will the router get an ip from arch box? How does internet work? How does the devices know it has to route via the router to reach internet? I am also worried if I will be locked out of the router web interface. Is there a better way?

Offline

#2 2019-03-26 19:07:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,332
Website

Re: Dns for all home devices

As it is, you are letting the other devices use the ISP-provided router as their DNS and you are counting on that black-box device to forward domain name requests to your arch machine.  There is no need for that: just configure the ubuntu and android devices to use the arch box as their DNS in the first place.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-03-28 21:07:40

KeyPercentage9
Member
Registered: 2019-03-24
Posts: 13

Re: Dns for all home devices

Let me try to simplify what I am trying to say.

1. I don't want to touch/configure each and every device in home. (ofcourse other than enter the wifi password). Some devices like printers won't even support doing anything else.
2. I want all dns requests in my home to go through a central place (my desktop) so I can log/analyse and add new local names.

Lets say I do the following:
1. Disable DHCP in router.
2. Add static ip to my arch desktop
3. Run DHCP and DNS server in arch desktop

Will all my devices get ip address from my arch desktop and will be able to access internet? Note: arch desktop is connected to the router via wifi - Lan wire not possible.

Offline

#4 2019-03-28 21:59:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,688
Website

Re: Dns for all home devices


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB