Book of Daniel is a lot older than Islam, or Christianity, etc.
Another story has Buddha carrying around his pet dog. The Chinese managed to turn that story into the more modern Fu Dog ~ the lionlike spiritual dog frequently portrayed in stone or bronze at the front of a Buddhist temple or prayer room.
Different things for different people at different times.
Afghan Hounds are popular among the wealthy all over the world.
It's the desert Arabs (those called by anthropologists and historians "the True Arabs") who have all these things against dogs and pigs.
You mean the book of Daniel in the Old Testament?