self-hosted DNS-Server - problem with subnet

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

self-hosted DNS-Server - problem with subnet

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
self-hosted DNS-Server - problem with subnet
self-hosted DNS-Server - problem with subnet
2018-11-21 20:50:34

Hi there,

 

I want to use my RPi as self-hosted DNS-Server (with pi-hole). The Pi is part of the DHCP-network my AC1200 is hosting.

 

Here's the setup of my network:
AC1200's LAN-IP-Address: 192.168.1.1
Subnet: 255.255.255.0
IP-range (DHCP): 192.168.1.100 - 192.168.1.199

 

The Pi has a static IP in the network (192.168.1.104).

 

Every time I try to change the main DNS-Server to 192.168.1.104, there's an error saying "DNS-Server-IP-Address and LAN-IP-Address may not be in the same subnet".

 

The firmware version of the AC1200 is 1.1.3 (Build 20180124 rel.52299 (EU)).

 

Any ideas or hints what to do? Thanks a lot in advance.

  0      
  0      
#1
Options
3 Reply
Re:self-hosted DNS-Server - problem with subnet
2018-12-18 08:07:34
Why do you want to change DNS to 192.168.1.104? As the error message says, it conflicts with the LAN. It doesn't work that way. If you want to use the RPi as DHCP server, how about turn off the DHCP server on the router? Would it work? I am not familiar with RPi. Hopefully someone can shred a light.
Nice to Meet You in Our TP-Link Community. Check Out the Latest Posts: Archer GE550 - BE9300 Tri-Band Wi-Fi 7 Gaming Router EasyMesh Is Available When Wi-Fi Routers Work in AP Mode as A Controller. Archer BE550 New Software Enhances System Stability and Optimizes MLO Network Stability. TL-WA3001 Supports EasyMesh, Speed Limit, Guest Network in AP Mode and/or Multi-SSID Mode. If you found the post or response helpful, please click Helpful. If an answer solves your problem, click "Recommended Solution" so that others can benefit from it.
  0  
  0  
#2
Options
Re:self-hosted DNS-Server - problem with subnet
2020-11-28 23:22:02 - last edited 2020-11-28 23:23:53

@Sunshine The fact of the matter is it shouldn't matter if the DNS is in the same subnet or not. I don't want the DNS server to be the DHCP server. But, according to this router I either have to let the router be the DNS forwarder and DHCP server or I can't have it be the DHCP Server at all if I want to use an internal DNS server.

 

Reasons to use an internal DNS server are simple enough: Control. You can control everything happening and being queried, and block malicious sites and spam in a single spot.

Keep in mind that DNS servers can ALSO be set to have a secondary, tertiary (and so on) backup addresses.

 

Reasons to keep the router as the DHCP server is also simple enough: If I have wireless/ehternet networking and I have no DHCP the network won't work at all. On power on the DNS server may take longer to boot than the wireless/ethernet network would, and depending on it to be the DHCP server is not optimal since you may end up with devices on a 169.x.x.x subnet. DNS is not required for local network to work but DHCP is required. So moving secondary services should always be an option (which this router thinks it is not, obviously).

 

So, now that you know why DHCP should stay in the router and why DNS should be moved out. Why do you need to set the network dns to the main router and the router's dns to the internal ip? easy enough - So the router can answer for the ip of local dynamic and static leases. I already explained why this should not be moved outside of the scope of the main device. And I would argue if you were gonna have 4 access points that it makes sense to partition the dhcp servers in multiple locations so the networks can work independently of the main router but this would, in turn, mean that those devices can't use a device in their same subnet as the dns server which in turn makes this device really hard to use for custom configurations.

 

I hope this helps clarify why such a simple option should be possible and in fact preferable.

 

On the same topic, I wish OneMesh(tm) actually worked and that a reverse bridge was a thing that could be set up with those devices too. But that is a topic for another post.

  2  
  2  
#3
Options
Re:self-hosted DNS-Server - problem with subnet
2022-02-23 16:16:31

I have a Deco X20 and facing the same issue.

 

I cant believe that TPLink is releasing this to the public.

 

Is this site read at any time by TPLink staff?

 

Please allow private DNS servers!

  1  
  1  
#4
Options