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

Remove search-domain from dhcp

Scheduled Pinned Locked Moved DHCP and DNS
3 Posts 2 Posters 498 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.
  • S
    shoemakerleopard
    last edited by Feb 10, 2021, 3:56 PM

    Hey guys, I've been using pfsense for 6 months now and I really like it. However, I'm having an issue with the DHCP daemon that I can fix. Whenever I see the resolv.conf of my Linux hosts, it appends a "search localdomain" that sometimes breaks some requests. I don't want to get into this issue, I just want to find a way to delete the search domains from the dhcp lease.

    I've searched in the forum and found a couple of similar questions but neither has a concrete solution (https://forum.netgate.com/topic/78995/disable-dhcp-search-domain/10
    https://forum.netgate.com/post/19700).

    Again, I don't want to get into the issues that it causes, I just want to delete that line. I tried leaving the domain in system > general setup blank, but that doesn't work. Setting up a "." doesn't either. So how can I disable this? Thanks!

    1 Reply Last reply Reply Quote 0
    • V
      viktor_g Netgate
      last edited by Feb 20, 2021, 7:53 AM

      Please create a bugreport:
      https://docs.netgate.com/pfsense/en/latest/development/bug-reports.html

      1 Reply Last reply Reply Quote 0
      • S
        shoemakerleopard
        last edited by Mar 24, 2021, 8:47 AM

        For anybody that might get here looking for the same option, I've asked this question on reddit and this is the solution:

        "Domain Search and Domain Name are option 119 and 15 respectively. You can override that and set an empty string under "Additional BOOTP/DHCP Options"."

        After setting those options with empty values, the search domain dissappeared.

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