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

    DNS resolver for use in China

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 2 Posters 1.1k 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.
    • 1amt0ny1
      1amt0ny
      last edited by

      I'm setting up pfsense for home use in China and would like to utilize the DNS resolver's functionality to gain full access to domains restricted by China's GFW. But I realized that the GFW blocks any DNS requests to a server other than the Chinese DNS server. Is there a workaround besides using a site-to-site vpn?

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

        @1amt0ny you could try and use dot (dns over tls) or doh (dns over https).. I would guess they most likely would block dot, unless you can find one that runs on something other than the default port of 853.

        Doh would be harder to block - but for gov shouldn't be too difficult either. Your best best is prob some vpn to some vps somewhere and route your dns through that.

        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

        1amt0ny1 1 Reply Last reply Reply Quote 1
        • 1amt0ny1
          1amt0ny @johnpoz
          last edited by

          @johnpoz for DNS over https isn't it just forwarding the query to an external DNS server via https? but how would the query even be able to reach the external server, say 1.1.1.1, if the GFW already blocks it?

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

            @1amt0ny yes doh is forwarding over https.. While they might block dns tcp/udp over 53.. Its "possible" they don't block normal 443 traffic.

            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

            1amt0ny1 1 Reply Last reply Reply Quote 1
            • 1amt0ny1
              1amt0ny @johnpoz
              last edited by

              @johnpoz so based on that I could just set upstream to 1.1.1.1 in pfSense and forward the DNS queries to it over https? but is there a way to forward DNS over https in pfSense? I don't see that option in the unbound resolver.

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

                @1amt0ny no pfsense only supports dot not doh, you would have to setup something else to do forwarding via doh, or just your browser doing it.

                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

                1amt0ny1 1 Reply Last reply Reply Quote 1
                • 1amt0ny1
                  1amt0ny @johnpoz
                  last edited by

                  @johnpoz got it thanks!

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