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

    Cannot Resolve Domain Name from Internal IP

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 680 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.
    • J
      Jaymei
      last edited by

      Hi Guys,

      Strange issue, hopefully, I can explain it and its a simple solution.

      I have a range of 5 WAN IP addresses assigned to my pfSense. I have pointed my domain name towards one of them to allow for web hosting as well as forwarded ports 80 and 443.

      The issue happens when I try to access the DNS name from the internal network - it won't resolve. I assume this is due to it going out one virtual IP and coming back in another. It works when not connecting from the LAN and also works on a private Ip address but it does not resolve when accessing the name locally.

      Hope someone can assist :)

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

        @jaymei said in Cannot Resolve Domain Name from Internal IP:

        works on a private Ip address but it does not resolve when accessing the name locally.

        So you resolving this FQDN and it resolves to your wan IP? If so from lan that would be a nat reflection. You can either setup nat reflection to work.. Or the better solution would be a host override pointing this FQDN to the actual rfc1918 address.

        https://www.netgate.com/docs/pfsense/nat/accessing-port-forwards-from-local-networks.html

        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 1
        • J
          Jaymei
          last edited by

          That done the trick!
          Thanks for the quick response (unlike mine)!

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