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

    DNS Server behind Pfsence

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 820 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.
    • B Offline
      blutril
      last edited by

      Hi!

      I have setup my alix board with pfsence on it.
      Somehow i cant setup a propper Nat or dns forwarding to let people resolve my domain.

      Here my setup:

      In my lan : mail server , dns server , web server

      Http forwarding seems to work because i can see my website if i just simply put my Public IP into the browser.
      But how do i setup dns forwarding to redirect all incomming dns queries for my domain to the internal dns server?

      Gereral Setup -> Addes Public IP of pfsence

      Tried to add the domain name & dns server IP to the Domain overrides  but nothing seems to work

      Does any one know how to propper set this up?

      Im thankfull for any tip!

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

        So you want people on the internet to talk to your dns server, your public IP is one of the registered IPs for your nameservers for you domain.

        Well just port forward 53 (dns) both udp and tcp to the private IP address of your dns server.

        Just like you forwarded traffic for your web server or your mail server.  BTW – if your on your own network, and you put in our webserver fqdn - and you get redirect back into your webserver.  That does not actually mean outside people can get to it.  That is nat reflection..  You really should validate from the outside to make sure port forwards are working.

        If you PM me your domain and IP address I be happy to validate any port forwards for you - if you don't want to make them public.

        BTW -- hosting your own dns not great idea with all the dns attacks around lately..  There are plenty of dns services out there that do dns for their bread and butter, etc.  No real reason to host your own - and where is your secondary name server?

        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 25.07.1 | Lab VMs 2.8.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.