
There is no doubt now that the domestic dog is a domesticated wolf. It has recently been reclassified by taxonomists as a subspecies of wolf, Canis lupus, so instead of Canis familiaris it is now Canis lupus familiaris. It was almost certainly the first animal to be domesticated but ideas have differed over how this came about.
In 1907, Francis Galton proposed that humans had taken wolf puppies back to their camp and raised them, maybe as playthings for the children, but this view is now seen as naive. You can raise a wolf puppy by hand but you don't get a dog; you get a dangerous wild animal. The genes of children who played with growing wolf puppies would probably have been quite quickly eliminated from the human gene pool as well as the puppies' genes being eliminated from the wolf gene pool.
So, clearly something else happened.