Configure DNS with YAST

Hello all,

I’m been using Debian for some time but just switched to openSUSE Leap last week. I’ve been playing with YAST today and got my static IP setup but I can’t get DNS to work. I’ve tried the “use default policy” as well as “manual” and giving my router as the server but to no avail. I am on my network and can ping my other boxes but whenever I try to ping Google, I either get “Network is unreachable” or “unknown host google.com”. Any suggestions would be very appreciated, thanks.

-Mike

I’ve not used Leap but assuming it’s like 13.2, have you set the gateway up in the routing tab?

On 11/15/2015 02:56 PM, michael n05 wrote:
>
> Hello all,
>
> I’m been using Debian for some time but just switched to openSUSE Leap
> last week. I’ve been playing with YAST today and got my static IP setup
> but I can’t get DNS to work. I’ve tried the “use default policy” as well
> as “manual” and giving my router as the server but to no avail. I am on
> my network and can ping my other boxes but whenever I try to ping
> Google, I either get “Network is unreachable” or “unknown host
> google.com”. Any suggestions would be very appreciated, thanks.
>
> -Mike
>
>

Make sure that your /etc/resolv.conf file is populated with nameservers.


Ken
linux since 1994
S.u.S.E./openSUSE since 1996

I think I figured it out. I had to set the “Change Default Route via DHCP” setting under YAST > System > Network Settings > Global to Off. Everything seems to work now but I did see the following error when I tried to use zypper:

# zypper refresh
Repository 'openSUSE-Leap-42.1-Oss' is up to date.                              
Retrieving repository 'openSUSE-Leap-42.1-Update' metadata ------------------|]


Warning: Digest verification failed for file '413c8a8222423c3551819d7a863d90d9ab8a2954a591e89f692b21d322ae758c-appdata.xml.gz'
[/var/cache/zypp/raw/repo-update1CyTDy/repodata/413c8a8222423c3551819d7a863d90d9ab8a2954a591e89f692b21d322ae758c-appdata.xml.gz]


  expected a65ac9cb6a990dbc4e245a43ff7b14b125e80f9c272af32ee0729102754b44f0
  but got  413c8a8222423c3551819d7a863d90d9ab8a2954a591e89f692b21d322ae758c


Accepting packages with wrong checksums can lead to a corrupted system and in extreme cases even to a system compromise.


However if you made certain that the file with checksum '413c..' is secure, correct
and should be used within this operation, enter the first 4 characters of the checksum
to unblock using this file on your own risk. Empty input will discard the file.


Unblock or discard? [413c/? shows all options] (discard):

I Googled it, didn’t seem too serious. I then saw it on my VM with stock YAST settings so I’m not too worried. Otherwise, I set my Gateway and used Google DNS, looks good. Hope this helps someone else in the future.

Thanks, Mike

Unlike Debian, we in openSUSE use YAST to easily configure things that ordinarily would be done by directly editing config files in other distros.

You can configure static addressing using either Network Manager or Wicked. If you use NM (select in YAST > Network Settings > Global Options > Network Setup Method), generally speaking all required settings are fairly straightforward and intuitive.

If you select Wicked (aka Classical ifup/updown but enhanced), configuring static settings is still (as has always been) a bit more difficult because required settings are scattered across a number of pages…

  • In YAST . NetWork Settings > Overview tab> Edit (your device) is easily found and most people can figure out what should be configured
  • YAST > Netowrk Settings > Hostname/DNS settings
    You need to enter the values for your DNS servers. Unless your machine is a member of a Domain, you probably should <uncheck> the “Change Hostname via DHCP” and specify a correct Hostname and Domain Name (in a small network most likely your Workgroup name)
  • YAST > Network Settings > Routing tab
    Enter the correct value for “Default IPv4 Gateway” or for the IPv6 Gateway as needed. Other settings should be set only as needed and typically not needed.

In other words, when configuring static addresses when configured to use Wicked (or Classical ifup/ifdown) you need to configured <every> Network Settings tab. To the OP, of course your posted issue is likely because you didn’t configure DNS servers on the Hostname/DNS tab.

HTH,
TSU