Results 1 to 6 of 6

Thread: Implement Static DNS IP addresses Leap 42.1

  1. #1

    Default Implement Static DNS IP addresses Leap 42.1

    Hi,

    I have seen another thread on DNS entries added to config in /etc/sysconfig/network/, but i am not sure how to ensure that they appear in resolv.conf.

    I have not used Network Manager to create a connection, as i rely upon the system to create the connection dynamically when i plug in the network cable.

    As such - the system always uses DHCP and dynamic DNS entries from the router/modem of the ISP.

    I have had so many issues with the DNS response where suddenly the response is that there is no entry for the url sent despite it working a few moments earlier.

    I have added the list to :

    NETCONFIG_DNS_STATIC_SERVERS
    NETCONFIG_DNS_RESOLVER_SORTLIST

    Yet this does not create in resolv.conf dynamically.

    If i wish to continue to plug in the ethernet cable only when i need to surf the internet, how do i ensure that the resolv.conf uses my list and not the DHCP ip address response ?

    Thanks and regards,

    Shadders.

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Implement Static DNS IP addresses Leap 42.1

    I'm not currently using wicked on my main laptop, but I note that the opensuse guide mentions
    To disable DNS configuration using netconfig, set NETCONFIG_DNS_POLICY=''. For more information about netconfig, see the netconfig(8) man page (man 8 netconfig).
    so perhaps you need to change
    Code:
       NETCONFIG_DNS_POLICY='auto'
    to
    Code:
       NETCONFIG_DNS_POLICY=''
    then restart the network
    Code:
    systemctl restart network

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Implement Static DNS IP addresses Leap 42.1

    This might also be sufficient (following any DNS config changes)
    Code:
    netconfig update -m dns

  4. #4

    Default Re: Implement Static DNS IP addresses Leap 42.1

    Hi Deano,

    Thank you for the reply - i will try that.

    Regards,

    Shadders.

  5. #5

    Default Re: Implement Static DNS IP addresses Leap 42.1

    Hi,

    OK - the search using the the default network address is now missing - but a nslookup produces no results - so DNS not working.

    Is there another setting i must use ?

    Or is it easier to create the connection manually and set the DNS in that network connection ?

    Thanks and regards,

    Shadders.

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,655
    Blog Entries
    14

    Default Re: Implement Static DNS IP addresses Leap 42.1

    Quote Originally Posted by shadders View Post
    Hi,

    OK - the search using the the default network address is now missing - but a nslookup produces no results - so DNS not working.

    Is there another setting i must use ?

    Or is it easier to create the connection manually and set the DNS in that network connection ?

    Thanks and regards,

    Shadders.
    You have a couple of options:
    Use YaST's network module. Set it to use wicked, add f.e. 8.8.8.8 and 8.8.4.4 as the DNSs, your router IP as the gateway. Or set the same module to use the Networkmanager and
    Use the Networkmanager settings app for your desktop environment. These allow manual/static configuration as well.
    Use an editor and make this part of resolv.conf
    Code:
    ### Please remove (at least) this line when you modify the file!nameserver 8.8.8.8
    nameserver 8.8.4.4
    look like this when you manually want to enter data without it being overwritten
    Code:
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Tags for this Thread

Posting Permissions

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