update metadata to have dns_id attribute.