Update ndns.js

Fix incorrect result
Merge pull request #4 from oshimin/master

Update ndns.js