how to change dns in suse linux 11.3

I don’t know how to change the dns to the dns of Google 8.8.8.8 as primary and 8.8.4.4 as secondary

so how can i change the dns?

Could you please tell step by step… I am a new user and the pictures will be the best!

p.s.: I am from Turkey, Twitter is banned in my country. I have to use it:(

Sorry… for version 13.1 not 11.3. please somebody tell me how I can change the topic of subject

On Wed, 26 Mar 2014 16:46:01 +0000, antmqr wrote:

> Sorry… for version 13.1 not 11.3. please somebody tell me how I can
> change the topic of subject

Just edit /etc/resolv.conf (as root)

Add the lines:

nameserver 8.8.8.8
nameserver 8.8.4.4

That’s the easiest way to make the change. You can also define it
statically in YaST and/or NetworkManager, but if it were me, I’d just
edit the resolv.conf manually.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On Wed, 26 Mar 2014 17:06:44 +0000, Jim Henderson wrote:

> On Wed, 26 Mar 2014 16:46:01 +0000, antmqr wrote:
>
>> Sorry… for version 13.1 not 11.3. please somebody tell me how I can
>> change the topic of subject
>
> Just edit /etc/resolv.conf (as root)
>
> Add the lines:
>
> nameserver 8.8.8.8
> nameserver 8.8.4.4
>
> That’s the easiest way to make the change. You can also define it
> statically in YaST and/or NetworkManager, but if it were me, I’d just
> edit the resolv.conf manually.

I should have mentioned as well that you should remove any existing
nameserver lines from the file.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

"### /etc/resolv.conf file autogenerated by netconfig!

Before you change this file manually, consider to define the

static DNS configuration using the following variables in the

/etc/sysconfig/network/config file:

NETCONFIG_DNS_STATIC_SEARCHLIST

NETCONFIG_DNS_STATIC_SERVERS

NETCONFIG_DNS_FORWARDER

or disable DNS configuration updates via netconfig by setting:

NETCONFIG_DNS_POLICY=’’

See also the netconfig(8) manual page and other documentation.

Note: Manual change of this file disables netconfig too, but

may get lost when this file contains comments or empty lines

only, the netconfig settings are same with settings in this

file and in case of a “netconfig update -f” call.

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

nameserver 192.168.2.1"

I dont know at where I have to write. I dont wan na make mistake. Can you add me line for me? I will copy-paste. meanwhile thank you very much

As has been said already: Remove the line “nameserver 192.168.2.1” and add the other two instead.

And you should remove the line before as well (as it says itself), otherwise the file might get regenerated automatically, losing your changes.

OTOH, you should also be able to configure the DNS servers in NetworkManager’s configuration dialog (if you use NM) or in YaST.

It works. Thanks for your helps.