Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: --no-refresh ignored by zypper

  1. #1
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,744
    Blog Entries
    1

    Default --no-refresh ignored by zypper

    On my newest 15.3 installation, DNS is broken for undetermined reason(s). /etc/resolv.conf is the same file I have on most of my installations, where it works as expected.

    Consequently, when I want zypper to list some installed package, I must not have zypper wanting to refresh. Thus my syntax is
    Code:
    # zypper --no-refresh se -si somestring
    This fails because zypper is obviously insisting on refreshing all autorefresh repos. B.O.O. search summary for dns fail in past 5 months files produces no results. Am I alone, needing to file a bug?
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1, TW, 15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on i965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,iQ45,iQ43,iG41,iG3X,i965G,AMD,NVidia&&&

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,797
    Blog Entries
    1

    Default Re: --no-refresh ignored by zypper

    Quote Originally Posted by mrmazda View Post
    On my newest 15.3 installation, DNS is broken for undetermined reason(s).
    Just a thought around this...have you checked the hosts entry in /etc/nsswitch.conf?
    openSUSE Leap 15.2; KDE Plasma 5

  3. #3
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,744
    Blog Entries
    1

    Default Re: --no-refresh ignored by zypper

    Quote Originally Posted by deano_ferrari View Post
    Just a thought around this...have you checked the hosts entry in /etc/nsswitch.conf?
    I have no idea what that file is about. rpm -qf says it comes from glibc. It's timestamped 2021-02-06 20:37, never touched by me.
    Code:
    # grep hosts /etc/nsswitch.conf
    ...
    hosts:          files dns
    What does it mean, or do?
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1, TW, 15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on i965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,iQ45,iQ43,iG41,iG3X,i965G,AMD,NVidia&&&

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,797
    Blog Entries
    1

    Default Re: --no-refresh ignored by zypper

    Quote Originally Posted by mrmazda View Post
    I have no idea what that file is about. rpm -qf says it comes from glibc. It's timestamped 2021-02-06 20:37, never touched by me.
    Code:
    # grep hosts /etc/nsswitch.conf
    ...
    hosts:          files dns
    What does it mean, or do?
    That checks out ok. It sets the order for name resolution methods. The 'files' entry means that /etc/hosts is checked first, then configured DNS is consulted as part of the name resolution process.

    More info:
    Code:
    man nsswitch.conf
    openSUSE Leap 15.2; KDE Plasma 5

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    28,268

    Default Re: --no-refresh ignored by zypper

    Quote Originally Posted by mrmazda View Post
    I have no idea what that file is about. rpm -qf says it comes from glibc. It's timestamped 2021-02-06 20:37, never touched by me.
    Code:
    # grep hosts /etc/nsswitch.conf
    ...
    hosts:          files dns
    What does it mean, or do?
    Code:
    man nsswitch.conf
    ?????
    Henk van Velden

  6. #6
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    2,099

    Default Re: --no-refresh ignored by zypper

    I don't know if it might be related, but recently a few TW users had similar problems with DNS, see:
    https://forums.opensuse.org/showthre...d-after-update
    https://forums.opensuse.org/showthre...et-trouble-DNS
    Tumbleweed Gnome on i7 4720HQ + Geforce GTX960M
    testing Leap 15.3

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    3,952

    Talking Re: --no-refresh ignored by zypper

    Quote Originally Posted by mrmazda View Post
    What does it mean, or do?
    On this Leap 15.2 system it's –
    Code:
    hosts:  files mdns_minimal [NOTFOUND=return] dns
    Where –
    The entry '[NOTFOUND=return]' means that the search for an entry should stop if the search in the previous entry turned up nothing. Note that if the search failed due to some other reason (like no NIS server responding) then the search continues with the next entry.
    And one other thing –
    Code:
     > l /etc/resolv.conf
    lrwxrwxrwx 1 root root 26 18. Aug 2020  /etc/resolv.conf -> /run/netconfig/resolv.conf
     >
    Yes, yes, I know – “netconfig” – Yuck!! Blaahh!! – never use ‘/etc/sysconfig/network/config’ …
    • End of the discussion …

  8. #8
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    3,952

    Question Re: --no-refresh ignored by zypper

    @mrmazda:

    Haven't looked myself but, does Leap 15.3 by default enable the “lightweight DHCP and caching DNS server”?
    • Check as follows:

    Code:
     > systemctl list-unit-files | grep -i 'dns'
    avahi-dnsconfd.service                                           disabled       
    chrony-dnssrv@.service                                           static         
    dnsmasq.service                                                  disabled       
    chrony-dnssrv@.timer                                             disabled       
     >
    Also, in ‘/etc/sysconfig/network/config’ I have the following item:
    Code:
    NETCONFIG_MODULES_ORDER="dns-resolver dns-bind nis ntp-runtime -dns-dnsmasq"
    Where did “dns-dnsmasq” come from? –
    Code:
     > ls /etc/netconfig.d/
    dns-bind  dns-dnsmasq  dns-resolver  nis  ntp-runtime
     >

  9. #9
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,744
    Blog Entries
    1

    Default Re: --no-refresh ignored by zypper

    I did a fresh minimal 15.3 installation from DVD. Name resolution started out broken, and is still broken.

    Bug reported https://bugzilla.opensuse.org/show_bug.cgi?id=1182722
    [zypper] the flag --no-refresh is not known; the flag -F is not known
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1, TW, 15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on i965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,iQ45,iQ43,iG41,iG3X,i965G,AMD,NVidia&&&

  10. #10
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,744
    Blog Entries
    1

    Default Re: --no-refresh ignored by zypper

    Quote Originally Posted by dcurtisfra View Post
    Code:
     > systemctl list-unit-files | grep -i 'dns'
    avahi-dnsconfd.service                                           disabled       
    chrony-dnssrv@.service                                           static         
    dnsmasq.service                                                  enabled       
    chrony-dnssrv@.timer                                             disabled       
     >
    I have:
    • chrony-dnssrv@.service static -
    • chrony-dnssrv@.timer disabled disabled


    Also, in ‘/etc/sysconfig/network/config’ I have the following item:
    Code:
    NETCONFIG_MODULES_ORDER="dns-resolver dns-bind nis ntp-runtime -dns-dnsmasq"
    Same here.

    Where did “dns-dnsmasq” come from? –
    Code:
     > ls /etc/netconfig.d/
    dns-bind  dns-dnsmasq  dns-resolver  nis  ntp-runtime
     >
    I have:
    Code:
    # ls -Gg
    -rwxr-xr-x 1  7533 Oct  5 02:38 dns-bind
    -rwxr-xr-x 1  7418 Oct  5 02:38 dns-dnsmasq
    -rwxr-xr-x 1 10104 Oct  5 02:38 dns-resolver
    -rwxr-xr-x 1 12384 Oct  5 02:38 nis
    -rwxr-xr-x 1  7280 Oct  5 02:38 ntp-runtime
    Here's a difference I don't know how to account for. On static IP 15.2:
    Code:
    # systemctl list-unit-files | grep net | sort
    network-online.target                   static
    network-pre.target                      static
    network.service                         enabled
    network.target                          static
    systemd-networkd-wait-online.service    disabled
    systemd-networkd.service                disabled
    systemd-networkd.socket                 disabled
    xinetd.service                          enabled
    On the 15.3 static IP broken DNS installation:
    Code:
    # systemctl list-unit-files | grep net | sort
    network-online.target                   static          -
    network-pre.target                      static          -
    network.service                         alias           -
    network.target                          static          -
    xinetd.service                          enabled         disabled
    Why would network.service be an alias? For what?

    Is the latest 15.3 DVD iso broken WRT DNS?
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1, TW, 15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on i965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,iQ45,iQ43,iG41,iG3X,i965G,AMD,NVidia&&&

Page 1 of 3 123 LastLast

Posting Permissions

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