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

Resolve domain to internal IP address

Scheduled Pinned Locked Moved DHCP and DNS
4 Posts 3 Posters 1.4k 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.
  • Y
    youkergav
    last edited by May 26, 2019, 4:54 PM

    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?

    J 1 Reply Last reply May 27, 2019, 3:18 AM Reply Quote 0
    • J
      JKnott @youkergav
      last edited by May 27, 2019, 3:18 AM

      @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, 32 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
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by johnpoz May 27, 2019, 10:56 AM May 27, 2019, 10:52 AM

        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
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • Y
          youkergav
          last edited by May 27, 2019, 6:10 PM

          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
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received