Results 1 to 7 of 7

Thread: how to change dns in suse linux 11.3

  1. #1

    Default 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

  2. #2

    Default Re: how to change dns in suse linux 11.3

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

  3. #3
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: how to change dns in suse linux 11.3

    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

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: how to change dns in suse linux 11.3

    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

  5. #5

    Default Re: how to change dns in suse linux 11.3

    "### /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

  6. #6

    Default Re: how to change dns in suse linux 11.3

    Quote Originally Posted by antmqr View Post
    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.
    Last edited by wolfi323; 26-Mar-2014 at 11:06.

  7. #7

    Default Re: how to change dns in suse linux 11.3

    It works. Thanks for your helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •