Pfsense as network dns server (lan)



  • 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?


  • Rebel Alliance

    Hello and welcome.

    Here and here for you.



  • @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.


  • LAYER 8 Global Moderator

    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



  • 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 .


  • LAYER 8 Global Moderator

    @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?



  • @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.


  • LAYER 8 Global Moderator

    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.


Log in to reply