ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved ZeroTier and Bind

    IT Discussion
    bind linux zerotier dns
    3
    10
    2.9k
    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.
    • stacksofplatesS
      stacksofplates
      last edited by

      Anyone done ZT with a Bind server? I can't get responses from the ZT address.

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        Can you ping it?

        stacksofplatesS 1 Reply Last reply Reply Quote 0
        • stacksofplatesS
          stacksofplates @scottalanmiller
          last edited by

          @scottalanmiller said in ZeroTier and Bind:

          Can you ping it?

          Ya I can ping and ssh over that interface.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            What does netstat -tulpn tell you about the BIND listening port?

            stacksofplatesS 1 Reply Last reply Reply Quote 1
            • stacksofplatesS
              stacksofplates @scottalanmiller
              last edited by stacksofplates

              @scottalanmiller said in ZeroTier and Bind:

              What does netstat -tulpn tell you about the BIND listening port?

              Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
              tcp        0      0 127.0.0.1:9993          0.0.0.0:*               LISTEN      -                   
              tcp        0      0 10.0.0.7:53             0.0.0.0:*               LISTEN      -                   
              tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      -                   
              tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
              tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      -                   
              tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      -                   
              udp        0      0 0.0.0.0:9993            0.0.0.0:*                           -                   
              udp        0      0 0.0.0.0:49994           0.0.0.0:*                           -                   
              udp        0      0 10.0.0.7:53             0.0.0.0:*                           -                   
              udp        0      0 127.0.0.1:53            0.0.0.0:*                           -                   
              udp6       0      0 :::9993                 :::*                                - 
              

              So it's only showing up on the eth0 interface and LO. I did an nmap scan of the ZT address and both port 53 and the DNS service showed up. I didn't specify any listening addresses in the Bind config, just so it would use everything. Do you think this has to do with the ZT interface being a TUN/TAP and not a "real" interface?

              I wonder how to get Bind to listen on 0.0.0.0:53 like SSH?

              Edit: cut out some stuff that didn't have to do with ZT or DNS.

              1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller
                last edited by

                Could be but seems unlikely. Maybe it is just binding to the first interface that it sees?

                stacksofplatesS 1 Reply Last reply Reply Quote 1
                • dafyreD
                  dafyre
                  last edited by

                  Check and make sure the firewall ports are open for the ZT0 interface?

                  stacksofplatesS 1 Reply Last reply Reply Quote 1
                  • stacksofplatesS
                    stacksofplates @scottalanmiller
                    last edited by

                    @scottalanmiller said in ZeroTier and Bind:

                    Could be but seems unlikely. Maybe it is just binding to the first interface that it sees?

                    I'll see if specifying the ZT IP as the listening address in that zone fixes it.

                    1 Reply Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates @dafyre
                      last edited by

                      @dafyre said in ZeroTier and Bind:

                      Check and make sure the firewall ports are open for the ZT0 interface?

                      Does it have separate firewall settings than the device it's using? I checked to see what firewalld zone it was in, but it says it's not in one. I don't know how to add a TUN/TAP interface to a zone since it doesn't have a normal ifcfg file.

                      1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates
                        last edited by stacksofplates

                        So as is with most things. I actually did set an address for Bind in named.conf. I just needed to add the ip address to listen on and add the zone for recursion and it's working now. Thanks!

                        1 Reply Last reply Reply Quote 5
                        • 1 / 1
                        • First post
                          Last post