I have used this pinout successfully with an IPC-HFW4431R-Z (4MP varifocal) by wiring it into an RJ45 keystone jack. It is a bit tricky since Dahua uses thin stranded wires internally which isn't easy to work with. I used a little solder to help keep a good connection.
Note that there are 8 pins but only 6 wires in the camera to connect to them. This is intentional.
Take this with a grain of salt; you can look around elsewhere and find different pinouts claimed to work with different cameras. The only way to be 100% sure without just trying it would be to cut the end off with a little extra cable so you can use a multimeter to perform continuity tests between the wires and the pins.
The camera female port was damaged, had to be replaced. Will use shrink tube to seal.
These connectors also have oil in them when you clamp them the seal is encased in the oil. pretty nice product.
I've never used these butt connectors however they worked well with the small distance I had to deal with and also the stranded small wire. I could have solder.however these don't require stripping and are easy to attach.