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

    DCHP Domains for VLANs not resolving

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 434 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.
    • W
      Waaaghnl
      last edited by

      Hi guys,

      I'm struggeling with DHCP Domain Names with VLANs. i wan't to use a different domain for every VLAN but it's not working for me (setup below). Every client on every subnet gets the HOSTNAME.domain.nl but my goal is to have my clients ending with hostname.srv.domain.nl or hostname.man.domain.nl based on the VLAN and subnet where it's living. I have tryed to add every "dns server (10.10.vlan.1)" in the dns list but without succes. All clients register to hostname.domain.nl. What do i miss?

      Greetings

      Setup:
      DNS: DNS Resolver.

      System / General Setup
      Domain: domain.nl

      Services / DHCP Server / LAN
      Domain name: domain.nl
      Subnet: 10.20.0.0/24

      Services / DHCP Server / VLAN20_SERVERS
      Domain name: srv.domain.nl
      Subnet: 10.10.20.0/24

      Services / DHCP Server / VLAN10_MANAGEMENT
      Domain name: man.domain.nl
      Subnet: 10.10.10.0/24

      Ping Results

      C:\Users\WaaaghNL>ping servers.domain.nl

      Pinging servers.domain.nl [10.10.10.4] with 32 bytes of data:
      Reply from 10.10.10.4: bytes=32 time=1ms TTL=63
      Reply from 10.10.10.4: bytes=32 time=1ms TTL=63
      Reply from 10.10.10.4: bytes=32 time=1ms TTL=63
      Reply from 10.10.10.4: bytes=32 time=4ms TTL=63

      C:\Users\WaaaghNL>ping servers.man.vhhq.nl
      Ping request could not find host servers.man.vhhq.nl. Please check the name and try again.

      Ping statistics for 10.10.10.4:
      Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
      Approximate round trip times in milli-seconds:
      Minimum = 1ms, Maximum = 4ms, Average = 1ms

      PS: servers.domain.nl is the server room switch

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

        You can not have client register with unbound or dnsmasq using different names you would have to create these host records by hand

        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
        • W
          Waaaghnl
          last edited by

          So what is the function of "DCHP Domain name" for than?

          My idrac module shows on vlan10 (management)
          Common Settings
          Register DRAC on DNS: CHECK
          DNS DRAC Name: idrac-kenny
          Auto Config Domain Name: CHECK
          DNS Domain Name: man.domain.nl

          And when i place it on vlan20 (servers)
          Common Settings
          Register DRAC on DNS: CHECK
          DNS DRAC Name: idrac-eric
          Auto Config Domain Name: CHECK
          DNS Domain Name: srv.domain.nl

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

            You can hand out whatever domain name you want via dhcp.. Doesn't mean the lease is going to register than in unbound from your dhcp server.

            Its only going to register the parent domain, the domain you setup in pfsense.

            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
            • W
              Waaaghnl
              last edited by

              Ok i get it. But why is the domain name option for? It’s not in the dhcp docs of pfsense

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

                Again - you can hand out the domain for the client.. whatever you want.. Doesn't mean client will use it, etc. depends on the client.

                But registering the dhcp leases into unbound only uses the pfsense domain. If you want to do something like what your talking about with multiple domains.. Use bind and have the client register themselves into you specific domains.

                Off the top my head I do not believe unbound allows for dns registration of clients because its not really meant as an authoritative NS to be honest.

                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
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.