well......Dunham is not a Norwegian name at all, but the other one you mention Danhiem (probably the correct spelling would be = Danheim). I know only too well that trying to read the Norwegian church books/records can be a real challange at times! and I am Norwegian :-) and have trouble, so I can only imagine what you are going thru. Are you using this web site in Norway: www.arkivverket.no
there is a selection for English on this site also. Good luck.