The application discloses a rotary joint and a drilling
machine, and the rotary joint comprises a rotating shaft, a bearing, a limiting shell, a packing seal box
assembly, a wear-resistant mandrel body, a
flange assembly and a mud input joint; the rotating shaft is rotatably installed in the limiting shell through the bearing which is axially limited; the first end part of the wear-resistant mandrel body is located in the rotating shaft, and the outer ring of the first end part of the wear-resistant mandrel body and the inner ring of the rotating shaft are rotatably sealed through the packing seal box
assembly, and the packing seal box assembly is axially and circumferentially limited relative to the rotating shaft; the second end part of the wear-resistant mandrel body is connected with the mud input joint through the packing assembly in a static sealing mode; the
flange assembly comprises a first
flange, a flange connecting part and a second flange which are sequentially connected, the first flange is fixedly connected with the limiting shell, the second flange is fixedly connected with the mud input joint, and the wear-resistant mandrel body is axially adjustably connected with the flange connecting part through a connecting piece. The sealing effect is guaranteed, and the service life of the rotary joint is improved.