Using Pi-Hole as Default DNS Server

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

Using Pi-Hole as Default DNS Server

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Using Pi-Hole as Default DNS Server
Using Pi-Hole as Default DNS Server
2019-09-11 01:03:58
Model: Archer C1200  
Hardware Version: V2
Firmware Version: 2.0.2

Having a bit of trouble getting my router to use my raspberry pi setup with Pi-Hole as the DNS server. As far as I can tell I've configure everything correctly. Under Advanced in the DHCP Server settings, I have both the primary and secondary DNS settings pointing to the Pi's IP. According to Pi-Hole however nothing is connected to it. It sees my computer and other devices, but it reports it all as inactive. Any insight into this would be a huge help.

  0      
  0      
#1
Options
5 Reply
Re:Using Pi-Hole as Default DNS Server
2019-09-11 15:49:07 - last edited 2019-09-11 15:49:32

@Malvazar 

 

Look at the IP information on the client devices to see what their DNS settings are at. You might need to manually set them up to point to the pi-hole.

  1  
  1  
#2
Options
Re:Using Pi-Hole as Default DNS Server
2019-09-28 10:54:45 - last edited 2019-09-28 11:01:25

^^^ That is what I do and it works.

 

@Malvazar You shouldn't need to point the secondary DNS slot on the DHCP server to the Pi-Hole IP, the Pi-Hole looks after the secondary DNS itself. It should work as you have configured it, with just the first DNS slot configured, but I configure each device (laptops, tablets, etc) seperately to point to the Pi-Hole DNS. I don't know if sometimes the DNS you enter on the DHCP can be overriden by your ISP's DNS IP address. 

  1  
  1  
#3
Options
Re:Using Pi-Hole as Default DNS Server
2019-10-06 17:23:26

@Malvazar 

 

The Router's WAN IP settings should use 1.1.1.1 or 8.8.8.8 or your carrier DNS info.

 

The PiHole (which I have setup as x.x.x.2 on my network, with x.x.x.1 being the router) IP information should only be listed in the LAN DHCP IP Settings.

 

Your router will always have good DNS information and won't use your PiHole, however your internal devices will grab DHCP from the router that contains the PiHole DNS info. So every device on your network uses the PiHole.

  0  
  0  
#4
Options
Re:Using Pi-Hole as Default DNS Server
2020-02-14 16:25:51

@Player911 

 

I have setup my TP Link Archer VR2800 router with two networks:

 

  1. a local network, where all devices can talk to each other, and
  2. a guest network (which I connect IoT devices), where I deliberately restrict devices from talking to the local network

 

The router acts as a DHCP server.

 

I have a DNS server that is on the local network (this is Pi-Hole). I have hard coded the router to DHCP announce the IP address of my local DNS server, x.x.x.254 (rather than use the default DNS details of my ISP).

 

While devices connected to the local network can access the local DNS server, devices connected to the guest network are unable to access the local DNS server - because I have disabled their LAN access. 

 

Is there a way I can have both local and guest networks access the local DNS server but NOT let devices on the guest network access the local network? Alternatively, am I able to offer a DHCP server which announces one set of DNS details to devices connected on the local network (i.e. the local devices use the IP address of my local DNS server for their DNS) and a different set of DNS details to devices connected to the guest network (i.e. guests use the IP address supplied by my ISP for their DNS)?

 

Thanks


E

  0  
  0  
#5
Options
Re:Using Pi-Hole as Default DNS Server
2020-09-08 16:22:05

@Els100 

Hello, 

I am having the same issue with TP-link M5 mesh modems.

 

I have manually set the Primary and Secondary DNS in the DHCP section to point to two pi-holes. The main home network works fine and can connect to the internet. The guest network is unable to connect to the internet. Only when I remove the Primary and Secondary DNS ip addresses does the guest network again connect to the internet.

 

As a temporary experiment I set the Primary and Secondary DNS in the IPv4 WAN section and both main and guest networks work fine and have internet access. I know and have confirmed that the modems have issues with that setup when power is cycled. The result for my M5's, in that situation when cycling power, is that they change the LAN IP from xxx.yyy.68.1 to xxx.yyy.0.1, and the DHCP start IP changs from xxx.yyy.68.100 to xxx.yyy.0.100 and the end IP from xxx.yyy.68.250 to xxx.yyy.0.250. The temporary experiment was removed, LAN IP reset and IPv4 WAN reset to automatic for normal operation.

 

So back to the original issue; How do I set up the M5 modems with a Primary and Secondary DNS in the DHCP section so that both the main and guest networks have internet access? 

 

Thanks

  0  
  0  
#6
Options
icon

Accessibility Adjustments

icon RESET

Choose the right accessibility profile for you

OFF

Seizure Safe

Eliminates flashes and reduces color

OFF

Cognitive Disability

Assists with reading and focusing

OFF

Vision Impaired

Enhances the website's visuals

OFF

ADHD Friendly

More focus and fewer distractions

Content Adjustments

Adjust Scale

icon
100%
icon

Highlight Title

icon

Highlight Link

icon

Text Magnifier

icon

Readable Font

icon

Adjust Fontsize

icon
100%
icon

Align Center

icon

Adjust LineHeight

icon
100%
icon

Align Left

icon

Adjust LetterSpacing

icon
100%
icon

Align Right

icon

Color Adjustment

Low Saturate

icon

High Saturate

icon

Dark Contrast

icon

Light Contrast

icon

Set Text Colors

Monochrome

icon

Set Title Colors

High Contrast

icon

Set BackgroundColor

Orientation Adjustments

Muted

icon

Hide Images

icon

Read Mode

icon

Stop Animation

icon

Reading Mask

icon

Highlight Hover

icon

Big Black Cursor

mutedicon

Big White Cursor

icon

Hide Video/Audio

icon

Stop Video

icon

Stop Audio

icon

Hide Animation

icon

Reading Guide

icon

Useful Links