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

    How to fix pfsense missing hostnames for devices with static ip configurations

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 3 Posters 4.1k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @mhweb
      last edited by johnpoz

      Sure you can create dhcp reservations and load those into unbound. Be it you actually use them or not.

      But when you said static, I took it that were creating the static on the device itself vs creating a dhcp reservation for it.

      But yeah that method is fine too..

      I would suggest you decide on what specific domain you want to use local. .local and or .localdomain are not very good choices. Do something that is not single label for starters.

      I use local.lan for mine. Set that up in pfsense under general. It will then be used for any dhcp reservations. Use that for host overrides. And make sure all your clients use that as their domain.. Windows will then use it in their search suffix.. And you will be able to resolve stuff via just name because the os will auto do the domain search..

      example - here is resolving pfsense via just using host

      $ ping sg4860
      
      Pinging sg4860.local.lan [192.168.9.253] with 32 bytes of data:
      Reply from 192.168.9.253: bytes=32 time<1ms TTL=64
      

      Notice how I just ping the hostname, but it comes back fully qualified sg4860.local.lan

      You know a good choice for your local domain to use would be home.arpa
      https://tools.ietf.org/html/rfc8375

      I keep meaning to switch over to that ;) That might be a good little project for this afternoon - but bowl games are on ;)

      And would also mean I would need to change all the certs currently using for switches and anything else using ssl locally.. Another reason have put off the move to the proper local domain to use.

      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

      M N 2 Replies Last reply Reply Quote 0
      • M
        mhweb @johnpoz
        last edited by

        @johnpoz Thank you for your help.

        1 Reply Last reply Reply Quote 0
        • N
          nima @johnpoz
          last edited by

          @johnpoz if i use host: nas and domain: home.arpa. as the RFC example i became errors from the DNS Revolver and it stops working.

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

            @nima huh?

            What did you do? What is not working? my nas uses that exact name - sure doesn't cause unbound to stop working.

            $ ping nas.home.arpa                                         
                                                                         
            Pinging nas.home.arpa [192.168.9.10] with 32 bytes of data:  
            Reply from 192.168.9.10: bytes=32 time<1ms TTL=64            
            Reply from 192.168.9.10: bytes=32 time<1ms TTL=64            
            

            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

            N 1 Reply Last reply Reply Quote 0
            • N
              nima @johnpoz
              last edited by

              @johnpoz is there a point after the domainname? home.arpa. or home.arpa?

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

                @nima huh?

                Do you not understand how fqdn work?

                No you would not put a . after home.arpa in the host override - if that is where you put it? Yeah that might confuse unbound? And might not start??

                nas.jpg

                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

                N 1 Reply Last reply Reply Quote 0
                • N
                  nima @johnpoz
                  last edited by

                  @johnpoz I was also surprised but it is there:

                                  Special-Use Domain 'home.arpa.'
                  

                  Abstract

                  This document specifies the behavior that is expected from the Domain
                  Name System with regard to DNS queries for names ending with
                  '.home.arpa.' and designates this domain as a special-use domain
                  name. 'home.arpa.' is designated for non-unique use in residential
                  home networks. The Home Networking Control Protocol (HNCP) is
                  updated to use the 'home.arpa.' domain instead of '.home'.

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

                    @nima

                    Yes the . on the end states its a TLD.. but you wouldn't put in when you create a host override..

                    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

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      nima @johnpoz
                      last edited by

                      @johnpoz Okay. Apart from that why do you use two domains for one host? Is there a particular reason?

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

                        @nima because I am in the middle of converting from using local.lan to home.arpa - When I created the new ssl cert I put both on their as SAN..

                        Was not sure if I had anything using the local.lan as yet... I could prob remove it as this point..

                        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.