Define a DNS server in network manager.

Hi,

I am for some days using an ISP with a stupid DNS server that when an
address does not exists resolves to himself with and information page
(http://dnssearch.ono.es/assist.php?url=www…) that the server I
requested is not found and does a clever search on the name.

I want none of that stupidity.

I want to use 8.8.8.8 dns instead, but I do not see in network manager
where to type the DNS (I’m using dhcp and wireless).

Does that mean that I have to edit /etc/resolv.conf? I thought there was
no need of that, with yast traditional ifup method I can setup the DNS,
I believe.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

I set mine at the router

I’m looking at the NetworkManager settings in 12.3 Beta1, though I don’t think this part has changed from 12.2 or 12.1.

I edit a specific connection, in my case wireless. Then I click on the IPv4 tab.

There’s a setting for Method, which defaults to “Automatic (DHCP)”. However, it looks as if I can set that to “DHCP addresses only”, and if I do that, I probably don’t get the DNS server via DHCP.

There’s a space below for entering additional DNS servers. I guess you would enter the 8.8.8.8 there.

I have not actually tried doing this, since I don’t need it. So I don’t know whether this setup would lose the default route, which typically comes from DHCP. If that happens, you would also have to setup routing for the connection. You would do that in the box that defaults to “Basic settings”.

On 01/23/2013 04:44 AM, Carlos E. R. wrote:
> Does that mean that I have to edit /etc/resolv.conf?

using Network Manager in 11.4E my resolv.conf looks like:

#nameserver 208.67.222.222
#nameserver 208.67.220.220
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844

where the two commented out are my ISP’s servers (IPv6 broken last time
i checked) and i’ve added both google’s servers IPv4 AND IPv6
addresses…plus i removed the line in the original resolv.conf

Please remove (at least) this line when you modify the file!

and by doing so i only get a mild complaint during boot (only seen if
the splash is suppressed with Esc or other) saying something like: You
have edited resolv.conf, i’m using it, but if you wanna see what i would
otherwise use, see [somefile (i don’t remember what)]


dd
http://tinyurl.com/DD-Caveat

On 01/23/2013 05:16 AM, caf4926 wrote:
> I set mine at the router

when taking a laptop mobile, i find it advantageous to have google’s set
in my laptop…so no matter which McDonald’s or friends IPS i wi-fi into
i can still have a well working DNS…

i’ve not rooted a little (no-name) Android tablet (i like), but i
suspect its conf points to a DNS which google trusts–no matter the
wi-fi engaged! :wink:


dd
openSUSE®, the “German Engineered Automobile” of operating systems!

On 2013-01-23 05:36, nrickert wrote:
> There’s a setting for Method, which defaults to “Automatic (DHCP)”.
> However, it looks as if I can set that to “DHCP addresses only”, and if
> I do that, I probably don’t get the DNS server via DHCP.

You are right. I guess I would have to edit the route, too (GW)


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2013-01-23 11:09, dd wrote:
> On 01/23/2013 05:16 AM, caf4926 wrote:
>> I set mine at the router
>
> when taking a laptop mobile, i find it advantageous to have google’s set
> in my laptop…so no matter which McDonald’s or friends IPS i wi-fi into
> i can still have a well working DNS…

They work better.

But, for example, when I was using the mobile ISP limited to
500MB/month, one day suddenly a page I wanted to open instead opened
another one at my ISP that informed me that I had spent my quota, and
that my speed would be subsequently be limited to 64k. Or that I could
click a button and and extra charge of 9€ would be applied and I would
get an extra gig.

This worked, I assume, because I used the DNS from my ISP.

Now I’m temporarily using a cable connection, unlimited, but with the
silly redirection when a domain is not found. And in less than a day I
will be back home with a different network. I have very limited time to
test, but I already know how to do it - it works :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2013-01-23 15:18, Carlos E. R. wrote:
> On 2013-01-23 05:36, nrickert wrote:
>> There’s a setting for Method, which defaults to “Automatic (DHCP)”.
>> However, it looks as if I can set that to “DHCP addresses only”, and if
>> I do that, I probably don’t get the DNS server via DHCP.
>
> You are right. I guess I would have to edit the route, too (GW)

It works. I replaced the resolv file with the original, then closed the
connection, reopened it. The file was rewritten with the google dns, and
the route was correct without me touching it.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2013-01-23 05:16, caf4926 wrote:
>
> I set mine at the router
>
>

There are other people affected and I have little experience with that
router. I prefer not to touch it more.

For instance, it does not run a local dns service, it just forwards the
dns it obtains from the isp.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))