Instruction: Answer the given question using the supporting document.

Input:
Question: Will it work with d5100 camera
Document: The lens did not work at all. I returned it and the company sent a new one but ignored my written request to send the new one to a different address, so I have not been able to get it and try it on the camera. I would not recommend using this company.
Bob CorbyAfter much research I decided to take the plunge and buy the Tokina 12-24mm F4 Pro 11 Zoom . I received the lens on Wednesday Oct 6, and sent it back on Thursday Ovt,7  I took about 10 pictures and realized the auto focus wasn't working. One reason to buy this lens was the built in auto focus motor. It didn't work. It wouldn't work with the camera auto focus either. The camera is a Nikon D300.
Tokina AF 12-24mm f/4 AT-X 124 Pro DX II Lens - Nikon MountI am using this lens for about a year and very satisfied with it. Pictures are very sharp and usually do not require much work with them. Lens is not very fast, as it is f/4, but for landscape and city photographers it is great. Price will not kill your budget too.
What few pics I've taken we're very nice. If you need lens with motor built in be sure and get the DX II as the other will not work with auto focusing on nikon DX cameras (price is about $100 higher). I paid $449 for my DX II on amazon. The AF / MF is controlled with a push pull ring and is very convient. Lens is heavy and feels well built.
I found that this lens brings in the dreaded vignetting (dark edges of the picture) when used at 12mm. For the average shooter who wants to concentrate on landscape it could work because a little vignetting in landscapes can look good. However, for architectural shots, this lens falls short. I returned the lens because I was forced to crop my images to get rid of the vignetting (even at f8).
Just couldn't do it. I use a Nikon D5100 camera. More later as I get to use it. Lens cap is 77mm.Michael
The items received were as advertised. Although I have not used the item I tried two of them on my lenses and camera and they fit perfectly.
This is a lens that DX format camera owners need to consider if they like landscape/arch photography, or just probably buy and stop wasting so much time doing so much lens research (though I did). Especially if you do, in fact, like to take those dramatic landscape shots.
A bit of distortion at the edges @ 12mm (nothing that can't be edited out with any Photoshop type program, it even be done in camera), pretty normal for any lens at this length unless it's of linear design and then the cost would be....well, let's face it, who's got that kind of money?
You need to make sure that you point the camera to the horizon point of the field of view, and don't tilt the camera up or down. If you do, the vertical lines will bend in or out. Further, you want to have significant objects up close to the lens, a dozen or so feet back, and off in the distance to give the full sense of 3D depth of field that the lens can provide.
Answer: Yes, it will work very well with a D5100!