I suggest that you check the following discussion here in the Ubuntu MATE Community discussion forums, started by @alpinejohn a few months ago (on 22 January 2023):
... and, specifically, read the following answer in that topic posted by @tkn (thom) that I think will solve your issue of setting up a network connection in Ubuntu MATE to use a specific DNS Server IP address: