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

    Dhcpd does not hand out default DNS server when using a tagged interface

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 1.6k 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.
    • B
      bennyc
      last edited by

      Hi,

      noticed the following symptom:

      After changing to an all-tagged L2 environment in one off my setups, I noticed that DHCP server did not hand out a DNS server to the dhcp clients.
      "leave blank" -> no dns server handed out with the options. This happens only when I assign a tagged vlan to my "LAN". Untagged the issue does not show. It is repeatable.

      Easily solved by setting the DNS server's (pfSense in this case) IP in "Services\DHCP Server\LAN\Servers\DNS Servers", but smells like a bug.
      My system = Version 2.3.2-RELEASE (amd64) , built on Tue Jul 19 12:44:43 CDT 2016 , FreeBSD 10.3-RELEASE-p5.

      4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
      1x PC Engines APU2C4, 1x PC Engines APU1C4

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        DHCP does not and cannot see any difference between a tagged and untagged interface. Something else in your configuration must be different between those interfaces.

        pfSense will hand itself out as a DNS server if the DNS resolver or DNS forwarder is enabled. If neither are enabled, it hands out the servers from System > General. Otherwise you have to set the DNS servers on the DHCP settings manually.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • B
          bennyc
          last edited by

          Hmm, tnx for the feedback, and agreed that makes sense, but I have gone back and forward a couple of times on this just to rule out human error (me ;)) and there isn't much exotic in my setup (imho).
          I'm using the DNS forwarder btw.
          I was -still am- in the impression the dhcpd just didn't hand out dns information. I'll try to repeat the test (but this time with packet capture on 67&68) when I get the chance during the next couple days and report back.

          4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
          1x PC Engines APU2C4, 1x PC Engines APU1C4

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            so your saying these clients on your vlan get dhcp its just missing dns??

            I can tell you that my dhcp settings for a vlan is left blank and it hands out the Pfsense IP in that vlan as the dns server as it is designed to do..

            if it didn't then none of my wifi clients that are on vlans via tags would work..

            Here as you can see I have a vlan 500, this is via wifi AP where that ssid has a vlan tag on it.  So pfsense has that vlan setup, its dhcp has no dns set all blank both on the general pool and the specific reservation I created for that client.  I then force a reconnect of that client so it would send a dhcp request that I did a packet capture of.  As you can clearly see it sent out the dns with is pfsense IP address in that vlan.

            I don't know what could be causing or what your perceiving as a problem, but I can assure you pfsense hands out its IP for vlan interfaces for dns just fine.

            dhcpvlans.jpg
            dhcpvlans.jpg_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • B
              bennyc
              last edited by

              Yes I did make that statement, as it was the observed behavior.
              Though in my case, it was not an OPT interface, it was on LAN (unsure that would make any difference). I have other setups, where I have many vlans on the same IF and as you say that works fine.
              However, I was setting my WAN and LAN as tagged on the same IF (different tags off course ;)), and from the moment I changed LAN as a tagged IF I did get an IP but no DNS server etc. Therefor I made this topic.
              The more I think on it the more I have the idea I must have done something odd…
              Anyway, allow me to test again (this weekend) & report back before wasting too much bandwidth on this (while it's unconfirmed).

              4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
              1x PC Engines APU2C4, 1x PC Engines APU1C4

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.