Update ndns.js

Fix incorrect result