implementing automatic dns update on device save