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

    DNS unable to resolve domains that point to internal IP addresses

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 496 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.
    • F
      fuckwit_mcbumcrumble
      last edited by fuckwit_mcbumcrumble

      I have a few public DNS records that point to internal IP addresses that resolve just fine on other networks.
      But on my pfSense 2.7 device any DNS record that's an internal IP fails to resolve.

      ex:
      ping test.png
      These domains resolve just fine on my home network using Google's routers and DNS servers.

      Any idea what would be causing these DNS records to fail? Is there some setting that blocks these DNS records for whatever reason?

      Some various settings:
      cat /etc/resolv.conf
      nameserver 127.0.0.1
      nameserver 8.8.8.8
      nameserver 8.8.4.4

      General setup DNS Server Settings
      pfsense dns settings.png

      DHCP server DNS settings
      dhcp dns servers.png

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

        @fuckwit_mcbumcrumble if you forward, and it returns a rfc1918 address it would be a rebind.

        https://docs.netgate.com/pfsense/en/latest/services/dns/rebinding.html#dns-rebinding-protections

        It is not good practice to have public dns return a rfc1918 address.

        If your going to forward to something and want unbound to return the rfc1918 to the client asking, you would need to setup the domain as private, or completely disable rebind protection - see the above link for details.

        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

        F 1 Reply Last reply Reply Quote 1
        • F
          fuckwit_mcbumcrumble @johnpoz
          last edited by

          @johnpoz Thanks! Disabling DNS Rebind Check fixed it.

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

            @fuckwit_mcbumcrumble I would lean more towards just setting the domains you know are going to return rfc1918 as private vs disabling rebind completely.

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.