My understanding is that Phthirus pubis--the crab louse--is a strictly human parasite, and certainly I am not aware of any animal lice that ever infect humans. I am unaware of a dog connection, but the NYC health department is a respected institution. Perhaps that information is accurate, but I cannot vouch for it. Generally lice are very species-specific , except the common body louse likes both humans and rats (hence the historic association of lice with plague and typhus epidemics).
Pubic lice can be transmitted sexually, but need not be. Many cases, like yours, are acquired by sharing intimate clothing or sleeping in contaminated beds.
Pubic lice are an unpleasant inconvenience, not an important health risk. Normally it is recommended that people with crabs get tested for other common STDs, but that's not necessary in your case, if it is true you haven't been sexually active for two years.
Good luck-- HHH, MD