Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How to use DNS as source instead of IP?

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 3 Posters 2.7k 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.
    • T
      torontob
      last edited by

      Hi everyone,

      Does pfSense have the capibility to resovle DNS names for source in firewall?

      Here is what I want to achive but not being able to do:

      • Allow inbound HTTPs request from my home computer to the pfSense 2.0 server which is hosted in Data Center. My PC authenticates with DynDNS and picks up mypc.dyndns.org. So, for source in pfSense firewall I can't use my IP as it's dynamic. How can I use mypc.dyndns.org there?

      Is that possible? I checked aliases an there is the same sort of issue. It asks me for an IP number which won't help me.

      Thanks

      1 Reply Last reply
      Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        You can include hostname in alias.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply
        Reply Quote 0
        • T
          torontob
          last edited by

          Thanks for feedback but it doesn't take it. It only takes Host(s), Port(s), and Network(s) and Host(s) means IP address and not domain names.

          Error message:

          "The following input errors were detected:
          A valid address must be specified."

          I just noticed I am running v1.2.3. Not planning to move it to 2.0 anytime soon. So, I need to get it working in v1.2.3.

          1 Reply Last reply
          Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            in 1.2.3 I have no ideo on how to do this.

            short even more your upgrade planning to 2.0.1 and it will work  ;)

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

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

              You must be on 2.0.x for that to work properly.

              In 1.2.3 you can put a dummy entry as the first entry in an alias, and use hostnames in the second and later entries. They are only resolved once when the filter reloads.

              In 2.0 and beyond, you can use them anywhere in an alias, and the system keeps track of them and re-resolves them every few minutes.

              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy