DCHP Domains for VLANs not resolving



  • 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


  • Rebel Alliance Global Moderator

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



  • 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


  • Rebel Alliance Global Moderator

    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.



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


  • Rebel Alliance Global Moderator

    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.