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

    BIND to provide DNS over wan

    pfSense Packages
    3
    4
    1.8k
    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.
    • S
      Snailkhan
      last edited by

      hi
      i need to do some testing with exchange server.
      so i need to publish my A,MX,SPF records for this test envirnoment using pfsense..
      i installed bind , while i dont have any clue on how to do above .. but will google it and hopefully find it.
      my main issue as of now is that the dns services are working from lan but not from wan.

      i disabled pfsense dns forwarder and resolver .
      enabled bind. and selected the option to listen on all interfaces.

      allowed port 53 from any wan ip to pfsense in pfsense firewall and now if i telnet from internet to my pfsense ip using port 53 its accessible.
      but when i check for any dns resolution using my pfsense wan ip it gives me Request time out;

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

        check your wan IP from where?  Did you edit the ACL to allow query from anywhere?

        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.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          A word of caution: If you are unfamiliar with BIND and maintaining BIND, do not run BIND facing the Internet in that way.

          Setup your domain with somewhere that will host DNS for you and let you manage it using a GUI outside of your structure. Not only will it be easier, it will be more secure, and it won't potentially compromise your firewall if/when a new BIND vulnerability is discovered.

          For example, if your domain is registered via Namecheap, you can have them handle your DNS for free and it's very easy to manage. Hurricane Electric also has DNS services you can utilize in a similar fashion.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

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

            ^ this is spot on advice..  I really can not stress it enough, unless your very familiar with bind and keep it updated.  And even then its going to be very rare that its just not better to host dns elsewhere.  There are plenty of places you can get FREE service if your registrars dns is lacking features.  HE comes to mind for sure, and for low cost $29 a year sort of price dnsmadeeasy is just top notch choice.

            For starters hosting off your own connection, do you have another connection/location to provide your 2nd ns?  this really should be on completely different netblock and isp and completely different geographic location, etc.

            I have been in this field for many years, and dns is a passion/hobby/work for me and I just really can not think of when you would want to do this on your own connection/gear.. Its just not cost/effort effective to provide your public dns off your own stuff when there are companies that all they do is dns and they do it very very well!!!  Anycast, ddos protection, instant updates, great reporting on queries, etc. etc.

            If your just needing to test something, ok - why can you not just do that in house and not available to internet?  If your wanting to use pfsense downstream and need a downstream ns in your network ok pfsense can do that off its wan, etc.  But when it comes to production public dns I don't hosting that yourself as a good idea.

            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.7.2, 24.11

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