OPNsense Forum

English Forums => General Discussion => Topic started by: TomT on April 21, 2021, 09:58:27 AM

Title: DHCP Server using DNS addresses not configured.
Post by: TomT on April 21, 2021, 09:58:27 AM
Hi.

I have DHCP v4 configured on my LAN and its set to with two DNS Servers 192.168.1.1 & 1.1.1.1
192.168.1.1 is the IP Address of the opnsense server.

However DHCP requests are returning two DNS servers:
6 (Domain Name Server Option): 192.168.1.1, 8.8.8.8

Anyone know why a Google DNS server is being shown, and not cloudflare ?
Are there any config files I can check ?

Thanks
Title: Re: DHCP Server using DNS addresses not configured.
Post by: chemlud on April 21, 2021, 10:10:17 AM
Android device?

Show screenshots of

System -> Settings -> General

Unbound

DHCPv4 for LAN

If you have static mappings in DHCPv4 check for specific settings for each client.
Title: Re: DHCP Server using DNS addresses not configured.
Post by: TomT on April 21, 2021, 03:08:22 PM
Hello,

Yes it is an Android device.

System:
(https://i.ibb.co/KjzxwRX/System.png) (https://ibb.co/VWpYmrt)

Unbound:
(https://i.ibb.co/RHd27Wt/Unbound.png) (https://ibb.co/nktrRS4)

DHCP:
(https://i.ibb.co/XzDTPHz/DHCP.png) (https://ibb.co/wK71qtK)

Thanks
Title: Re: DHCP Server using DNS addresses not configured.
Post by: chemlud on April 21, 2021, 05:15:48 PM
imho Android can never be disconnected from mothership. correct me if I'm wrong...

can check resolve.conf on android? just kidding.

I can't read the two IPs for the DNS in your DHCP config...
Title: Re: DHCP Server using DNS addresses not configured.
Post by: TomT on April 21, 2021, 05:35:47 PM
Hi,

I tried changing the DNS entries in the DHCPv4 config to see if that would work or not.
They now read: 192.168.1.1 & 209.222.18.222

Just tested again on the LAN and noticed a second DHCP server is running.
I've disabled that and it does appear to be working correctly.  Looks like the Android device was getting it address from the other server, which should have been disabled !

Thanks for helping..

Title: Re: DHCP Server using DNS addresses not configured.
Post by: chemlud on April 21, 2021, 05:48:31 PM
Quote from: TomT on April 21, 2021, 05:35:47 PM
Hi,

I tried changing the DNS entries in the DHCPv4 config to see if that would work or not.
They now read: 192.168.1.1 & 209.222.18.222

Just tested again on the LAN and noticed a second DHCP server is running.
I've disabled that and it does appear to be working correctly.  Looks like the Android device was getting it address from the other server, which should have been disabled !

Thanks for helping..



Second DHCP server? That sounds fun! :-D