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

    I need HELP on DNS RESOLVER!

    DHCP and DNS
    6
    78
    14.7k
    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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      198.41.0.4 is root - I just edit in wireshark what my public IP resolves too ;) Not a fan of posting my public IP on forums - especially when I have ticked off a few people here that might do something with that info - hehehe

      You can install dig on your windows machine.. Just download bind from iSC and say install tools only... I run dig on windows all the time..

      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.7.2, 24.11

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @johnpoz
        last edited by

        @johnpoz said in I need HELP on DNS RESOLVER!:

        I run dig on windows all the time..

        I should have known this one human life before. Nuking nslookup from orbit right now.
        Thanks.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          hehhe - nslookup is a joke of a tool compared to dig..

          edit: BTW - newer versions you might have to set resolv.conf pointing to your nameserver in the etc folder it creates if don't want to have to use @ namserver in the cmdline all the time... Unless they fixed that? I think starting with 9.12 it was failing to pull NS from the OS..

          let me check

          yeah - if you don't have a resolv.conf file in the etc folder dig 9.12.2-p1 atleast does not pull NS its suppose to use..

          So create a resolv.conf and put in
          namserver ipaddress

          That you want to use with dig so you don't have to always call it out.

          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.7.2, 24.11

          E 1 Reply Last reply Reply Quote 0
          • E
            emirefek @johnpoz
            last edited by

            @johnpoz I dont understand how to install that any tutorial ?

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

              Run the install - pick tools only..

              0_1537017104819_install.png

              The only issues is if you don't want to have to tell dig which NS to use every time you run it - then you need to create a resolv.conf file in the etc folder it creates when you install it..

              0_1537017266020_resolvfile.png

              Put in nameserver you want it to use.. then when you run dig it will default to using that ns..

              0_1537017359265_defaultns.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.7.2, 24.11

              E 1 Reply Last reply Reply Quote 0
              • E
                emirefek @johnpoz
                last edited by

                @johnpoz hehe. Damn TTNET they are modifying our dnses.
                Yeah the first dig command with TTNET nameserver(Office ISP)
                Second one is taken with KABLONET nameservers(Home ISP)

                And both of tested from home In KABLONET I cannot resolve hostname with TTNET dnses. But I can resolve it with default KABLONET dnses.

                0_1537018400484_hahahaISPfuckedMYnetwork.PNG

                I dont know how to capture packets without pfsense. If you know tell me pls. I can send capture from house network too. Maybe it can help.
                And other question. HOW WE CAN PASTHROUGH THIS BLOCKING ?

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan
                  last edited by

                  @emirefek said in I need HELP on DNS RESOLVER!:

                  HOW WE CAN PASTHROUGH THIS BLOCKING ?

                  Try this : https://www.netgate.com/blog/dns-over-tls-with-pfsense.html

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    emirefek @Gertjan
                    last edited by

                    @gertjan Cloudflare DNS is blocked in my country. Is DNSoverTLS forcing to use quad9 servers. Dosent work with roots?

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

                      forwarding is not resolving... The only way to get past a block without forwarding is vpn.. So you can talk to whoever you want via the vpn connection.

                      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.7.2, 24.11

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        emirefek @johnpoz
                        last edited by emirefek

                        @johnpoz yeah VPN connection is nice choise but can we fix that without it? I can solve domains with other dns servers. With other dns servers I can reach sites. But My ISP modifying roots. I think DNSoverTLS is good choice for this. I dont know how its working clearly but. Can ISP replicate DSN TLS's too?

                        edit: I dont want vpn becuse we are using too much goverment websites in office and we need that. In turkey no one sells vpn its pointless(our goverment blocking everything)

                        edit: oh sorry now I understand your post. I will try to use it. Can I use pfblocker with forwarding?

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

                          you don't need to send your traffic down the vpn.. If you want to just be able to resolve then fire up a vps somwhere, create vpn tunnel to it and run your dns through that connection.

                          Or just run resolve on it - and then run tls forwarding to that.. That vps is under your control and resolving - so forwarding to that inside a tls tunnel is pretty much just like running your own resolver.

                          You can fire a vps pretty much anywhere on the planet that is not behind some gov restrictions.. I run multiple vps all over the glob as low as $15 USD for a year.. You just need something low end to do dns for you..

                          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.7.2, 24.11

                          E 1 Reply Last reply Reply Quote 1
                          • E
                            emirefek @johnpoz
                            last edited by

                            @johnpoz ohh thanks mate I cannot think that nice idea. Any ideas for integrating vpn to pfsense dns resolver? Tutorial or etc.

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

                              You would just pick your vpn interface as the outgoing interface in the resolver...

                              But would be easier to just run the resolver on the box, set it up for tls - and then forward via tls..

                              So here I have a vpn always running to one of my vps - so when I do a dns leak test you can see it shows my public IP becuase its directly resolving from there.. Then I change unbound to only use my vpn interface to my vps - and it shows the vps IP

                              0_1537026353417_vpsdns.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.7.2, 24.11

                              E 1 Reply Last reply Reply Quote 0
                              • E
                                emirefek @johnpoz
                                last edited by

                                @johnpoz okay thanks for helping. I take too much time. Firstly Im gona try TLS. If I had any question. I will ask.

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

                                  @emirefek said in I need HELP on DNS RESOLVER!:

                                  If I had any question. I will ask.

                                  That is what we are here for - good luck!

                                  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.7.2, 24.11

                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    emirefek @johnpoz
                                    last edited by

                                    @johnpoz Okayyy Im back. I was do some researchs and we cannot pass DNS injection with TLS. Our ISP reseting tcp connetions and we cannot do any http handshake to servers can ping can dig but nothing more. I want to try VPN option now. And I need help on here. You said you need to chose vpn interface am I need to connect another box to pfsense box to use vpn ?

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

                                      Huh? Your saying they are blocking your TLS to specific nameservers? Sure ok..

                                      Do you have a vpn setup already? You do not need to connect another box to pfsense - but you need a VPN to connect to out on the internet.

                                      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.7.2, 24.11

                                      E 1 Reply Last reply Reply Quote 0
                                      • E
                                        emirefek @johnpoz
                                        last edited by

                                        @johnpoz said in I need HELP on DNS RESOLVER!:

                                        a VPN to c

                                        I have couple trying bucks on gcloud I gonna try it on here. Which vpn type am I need to set?

                                        And In turkish netgate forum I was ask some peoples and they were already try to passthrough with TLS but we can resolve thats hostnames but we cannot do more, ISP isnt allowing handshakes.

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

                                          Handshakes to what? So your being blocked from talking to 1.1.1.1 on port 843??

                                          You need a vpn box - doesn't matter what type, ipsec, openvpn, L2tp past your blocks if you want to be able to query for dns through that vpn.

                                          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.7.2, 24.11

                                          E 1 Reply Last reply Reply Quote 0
                                          • B
                                            bfeitell
                                            last edited by

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