• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

ISC DHCP Server Custom DHCP Options 252 for WPAD prevents DHCP Static Mappings custom DNS

Scheduled Pinned Locked Moved DHCP and DNS
4 Posts 2 Posters 552 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    aGeekhere
    last edited by aGeekhere Jan 13, 2025, 2:35 AM Jan 13, 2025, 1:33 AM

    Hi when you use Custom DHCP Options 252 String "http://192.168.1.1/wpad.dat" users with DHCP Static Mappings and custom DNS no longer use the custom DNS and are overridden to use the defaults set in DNS Server Settings.

    Could be related to https://redmine.pfsense.org/issues/3915

    This was working correctly in pfsense 2.7.0 (using 2.7.2 now)

    To test set the following
    System General Setup DNS Server Settings
    1.1.1.1

    Services DHCP Server LAN
    Custom DHCP Options
    252
    String
    "http://192.168.1.1/wpad.dat"

    Create a static map for an ip address and give it a custom dns for 8.8.8.8

    Note you can use the WPAD package to test https://forum.netgate.com/topic/116163/unofficial-wpad-package-for-pfsense-software

    You can use https://dnsleaktest.com to test which dns server it is using

    Any work arounds ? Kea DHCP does not seem to have the Custom DHCP Options for the WPAD

    UPDATE 1:
    Same issue if you use Host Overrides in DNS Resolver

    wpad	pfsensedomain.local	192.168.1.1	WPAD Host Override
    

    UPDATE 2:
    Same issue when using Kea DHCP with WPAD Host Overrides in DNS Resolver

    Never Fear, A Geek is Here!

    G 1 Reply Last reply Jan 13, 2025, 9:27 AM Reply Quote 0
    • G
      Gertjan @aGeekhere
      last edited by Gertjan Jan 13, 2025, 9:28 AM Jan 13, 2025, 9:27 AM

      @aGeekhere said in ISC DHCP Server Custom DHCP Options 252 for WPAD prevents DHCP Static Mappings custom DNS:

      UPDATE 1:
      Same issue if you use Host Overrides in DNS Resolver

      Host override ?
      Can't work, as you told the device to use 8.8.8.8 as a DNS source. The pfSense resolver will no be used by that device.

      Create a static map for an ip address and give it a custom dns for 8.8.8.8

      @aGeekhere said in ISC DHCP Server Custom DHCP Options 252 for WPAD prevents DHCP Static Mappings custom DNS:

      UPDATE 2:
      Same issue when using Kea DHCP with WPAD Host Overrides in DNS Resolver

      kea, right now, doesn't allow you to add any DHCP options like "option 252". If you need these, stay with ISC.

      Btw https://redmine.pfsense.org/issues/3915 was solved a decade ago.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      A 1 Reply Last reply Jan 13, 2025, 9:42 AM Reply Quote 0
      • A
        aGeekhere @Gertjan
        last edited by Jan 13, 2025, 9:42 AM

        @Gertjan
        Here is what happens
        if i use ISC DHCP with Custom DHCP Options the static map with the custom DNS stop working and uses the DNS in general setup (proxy still works)

        If i remove the Custom DHCP Options and just use Host Overrides in DNS Resolver while using Enable Forwarding Mode the static map with the custom DNS will stop working and use the DNS in general setup (proxy still works)

        If i remove both the Custom DHCP Options and Host Overrides the static map with the custom DNS works and uses the custom DNS (proxy does not work, expected)

        If i use Kea DHCP with Host Overrides in DNS Resolver while using Enable Forwarding Mode the static map with the custom DNS will stop working and use the DNS in general setup (proxy still works)

        This works in pfsense 2.7.0 however it does not seem to in 2.7.2 as i have the old router that is on 2.7.0 to test on.

        Never Fear, A Geek is Here!

        G 1 Reply Last reply Jan 13, 2025, 10:30 AM Reply Quote 0
        • G
          Gertjan @aGeekhere
          last edited by Gertjan Jan 13, 2025, 10:30 AM Jan 13, 2025, 10:30 AM

          @aGeekhere said in ISC DHCP Server Custom DHCP Options 252 for WPAD prevents DHCP Static Mappings custom DNS:

          if i use ISC DHCP with Custom DHCP Options

          Check if it actually works. Go to packet capturing, enter/set this :

          5b09c119-78ee-4da9-8c90-1cfb48875fb5-image.png

          and click start.

          You will see the DHCP client requests, and the pfSense DHCP server answer. The "Option 252" was send to the client ?

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received