ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #14107
Re: Change dns
> What do you mean exactly with this request? The IP of the DNS server is
stored in /etc/resolv.conf and fetched (normaly) by dhclient. What feature
you are asking for?
I am asking on a way to change them.
I want to always use OpenDNS instead of the DNSs provided by the connection
I am connecting to, _especially_ when this connection is provided by Hotels
or even worse by public WIFIs in some cities.
> You can find good examples on [1] about how to do this with the nmcli
utility.
This looks promising indeed! I tried to scroll briefly, I'll give it a try
asap :)
Davide Alberelli
2015-07-13 17:07 GMT+09:00 Simon Busch <simon.busch@xxxxxxxxxxxxx>:
> From what I know changing the DNS server through the UI isn't possible
> currently. Changing /etc/resolv.conf is also not a suitable solution as it
> is
> managed by resolvconf/nm and gets overriden when the connection
> changes.
>
> Best way is to tell network-manager directly about this and let it use a
> different DNS server for your connections. You can find good examples
> on [1] about how to do this with the nmcli utility.
>
> regards,
> Simon
>
> [1]:
> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/sec-Using_the_NetworkManager_Command_Line_Tool_nmcli.html
>
> On Sun, Jul 12, 2015 at 8:37 PM, Matthias Apitz <guru@xxxxxxxxxxx> wrote:
>
>> El día Sunday, July 12, 2015 a las 09:30:42PM +0300, mrl586 escribió:
>>
>> > If DHCP server not working, we need set those address manually. Is this
>> > possible with Ubuntu Phone?
>>
>> Hello mrl586,
>>
>> 1. do not top post;
>> 2. do not ask me, but the list (cc'ed)
>> 3. ofc, you can use the terminal-app and set/edit whatever value you want
>> into the file /etc/resolv.conf; but if DHCP is not working you should
>> blame your mobile provider or the manager of the Wifi AP
>>
>> matthias
>>
>> > 2015-07-12 20:06 GMT+03:00 Matthias Apitz <guru@xxxxxxxxxxx>:
>> >
>> > >
>> > >
>> > > 2015-07-12 19:17 GMT+04:00 Davide Alberelli <dadexix86@xxxxxxxxx>:
>> > >>
>> > >> Hi,
>> > >>> Is there a way one can change the dns associated to a particualr
>> > >>> connection?
>> > >>>
>> > >>
>> > > What do you mean exactly with this request? The IP of the DNS server
>> is
>> > > stored in /etc/resolv.conf and fetched (normaly) by dhclient. What
>> feature
>> > > you are asking for?
>> > >
>> > > matthias
>> > >
>> > >
>> > >
>> > > --
>> > > Sent from my Ubuntu phone
>> > > http://www.unixarea.de/
>> > >
>> > >
>> > > --
>> > > Mailing list: https://launchpad.net/~ubuntu-phone
>> > > Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> > > Unsubscribe : https://launchpad.net/~ubuntu-phone
>> > > More help : https://help.launchpad.net/ListHelp
>> > >
>>
>> --
>> Matthias Apitz, guru@xxxxxxxxxxx, http://www.unixarea.de/
>> +49-176-38902045
>> No! Nein! ¡No! Όχι! -- Ευχαριστούμε!
>>
>> --
>> Mailing list: https://launchpad.net/~ubuntu-phone
>> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
>
References