Please help me to automatically update A record using DNS



In windows, I want to try to automatically update the www record with a single line of code, I don’t know how to achieve it?
Or use CMD to update.
The main thing I am a newbie, I don’t know how to do this update, it is not as simple as,
Ask everyone to help me.

Update DNS record