Score:-2

Is it possible to set the DNS servers without root access?

cn flag

Is it possible to set the DNS servers without root (sudo) access on an Ubuntu server?

The admin of the Ubuntu server has set a wrong DNS resolver, and I do not have sudo access. Can I somehow fix the DNS servers for my own user?

I can NOT (obviously, lol) ask the admin to fix this. This is a university server with no accountability whatsoever.

Bodo avatar
pt flag
Please [edit] your question and explain what you want to achieve.
cn flag
Yes, reboot into a live session, create a netplan file and add it to the netplan.d. If you don't own the server then no.
HappyFace avatar
cn flag
@bodo Where's the confusion? The admin of the Ubuntu server has set a wrong DNS resolver, and I do not have sudo access. Can I somehow fix the DNS servers for my own user?
Bodo avatar
pt flag
@HappyFace There is no confusion but lack of details in the question. Your explanation belongs to the question. Please don't use comments to add requested information or clarification. If the admin really has configured wrong DNS servers, then you should ask the admin to fix this. There might be workarounds depending on what exactly you want to do, e.g. using a proxy or using a manual address lookup with a specified server.
HappyFace avatar
cn flag
@Bodo Okay, I added the details to the question.
Bodo avatar
pt flag
@HappyFace As written in [Rinzwind](https://askubuntu.com/users/15811/rinzwind)'s [comment](https://askubuntu.com/questions/1483928/is-it-possible-to-set-the-dns-servers-without-root-access?noredirect=1#comment2598375_1483928) you cannot fix this. Unfortunately you did not add enough details for suggesting workarounds. I cannot believe that the configuration of university server is really *wrong* and no way to have them fix this. (Or do you want to circumvent some intentional restrictions?)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.