Navigation

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

    Resolve domain to internal IP address

    DHCP and DNS
    3
    4
    707
    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.
    • Y
      youkergav last edited by

      I am new to pfSense, so forgive the noob question...

      I purchased a domain that I want to resolve differently when inside the LAN. I would like to resolve it to pfSense's IP.

      So (just an example)...
      ouside world: mydomain.com -> 65.254.242.180
      inside network: mydomain.com -> 192.168.1.1

      I have tried adding this to domain overrides in the DNS resolve but have had no luck.

      Is something even possible to do in pfSense?

      JKnott 1 Reply Last reply Reply Quote 0
      • JKnott
        JKnott @youkergav last edited by

        @youkergav

        Yes, that's how I have it set up. I use an external DNS server, with my real world addresses and configure the pfSense DNS to provide the local network address. Works fine.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 64 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

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

          Domain override would be when you want to ask a specific nameserver to resolve something fro you like host.domain.com or other.domain.com, you would create a domain override for domain.com pointing to some name server IP address that will resolve x.domain.com for you.

          If you want mydomain.com to return 192.168.1.1

          Then you would create a HOST override for domain.com where host would be domain and domain would be com

          hostover.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
          2440 2.4.5p1 | 2x 3100 2.4.4p3 | 2x 3100 22.01 | 4860 22.05

          1 Reply Last reply Reply Quote 0
          • Y
            youkergav last edited by

            This accomplished exactly what I was after... I didn't event think about putting in a top-level domain.

            Thanks for the help!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post