DBSCAN using Hamming Distance Metric

I would like to use Clustering.DBSCAN and specify my own distance metric.
Specifically, I want to use Hamming distance. The current DBSCAN interfaces do not seem to provide such option? Is there a workaround for this?
Thanks.