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

    Pfsense as network dns server (lan)

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 3 Posters 1.0k 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.
    • J
      jucelio_rosa
      last edited by

      Good afternoon.

      My network does not have a dns server and I would like to configure pfsense so that it is the dns server. How do I set up?

      1 Reply Last reply Reply Quote 0
      • mike69M
        mike69 Rebel Alliance
        last edited by

        Hello and welcome.

        Here and here for you.

        DG FTTH 400/200
        Supermicro A2SDi-4C-HLN4F with pfSense 2.7.2

        J 1 Reply Last reply Reply Quote 0
        • J
          jucelio_rosa @mike69
          last edited by

          @mike69 Good Morning. Thanks for the reply, but I still can't.
          I left dns resolving disabled and enabled dns Forwarder.
          In General Settings, I put dns 8.8.8.8 (my provider said I didn't have a dns to let me know ..).
          While testing on a Windows computer, I was unable to access the internet. Said the Dns server was not working. I also enabled DHCP in PfSense. In DHCP, I did not first fill in the DNS field but then tested by putting DNS 8.8.8.8 there as well. Both unsuccessful attempts.

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

            dns on pfsense would/should be working out of the box.. With no configuration really needed.

            Your going to have to give more info if you want help in figuring out what is wrong with your setup.. Can pfsense resolve stuff.. Go to diag, dns lookup - what is the output

            dnslookup.png

            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
            • J
              jucelio_rosa
              last edited by

              Good Morning.
              Problem solved.
              I installed pfsense again (to start from scratch), set up dhcp, specified dns in pfsense and enabled the dns resolver. It worked. Thanks .

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

                @jucelio_rosa said in Pfsense as network dns server (lan):

                specified dns in pfsense

                What does that mean exactly? Again out of the box there is no reason to specify any dns since it will "resolve" from roots..

                Do you mean you pointed your clients to pfsense for dns, and have unbound enabled?

                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
                • J
                  jucelio_rosa
                  last edited by

                  @johnpoz said in Pfsense as network dns server (lan):

                  What does that mean exactly? Again out of the box there is no reason to specify any dns since it will "resolve" from roots..
                  Do you mean you pointed your clients to pfsense for dns, and have unbound enabled?

                  What I meant is that I specified dns in General Setup (8.8.8.8 and 8.8.4.4) and enabled dns Resolver (services \ dns Resolver). DHCP has also been enabled, since Pfsense will be my DHCP server.
                  Yes, clients were pointed to DNS Pfsense. I did this because the site will not have an Active Director server, so I concentrated everything on pfsense.

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

                    And again there is ZERO reason to setup any dns in general with pfsense, since unbound out of the box "resolves" it does not use what you put in general.. Unless you change it to forwarder mode.

                    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.