fix dns updating bug