Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4378

"net_del_dns" command doesn't work

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    •  grub2-efi-x64-2.12-4.el10
    • None
    • Moderate
    • rhel-bootloader
    • ssg_display
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • RegressionOnly
    • Bug Fix
    • Hide
      .The GRUB2 `net_del_dns` command deletes the DNS server correctly
      Previously, if you attempted to delete the DNS server by using the `net_del_dns` command, it added the DNS server back erroneously because of incorrect implementation, and returned an error.
      With this fix, the `add` command was replaced by the `remove` command in the `net_del_dns` implementation.
      As a result, you can delete the DNS server by using the `net_del_dns` command.
      Show
      .The GRUB2 `net_del_dns` command deletes the DNS server correctly Previously, if you attempted to delete the DNS server by using the `net_del_dns` command, it added the DNS server back erroneously because of incorrect implementation, and returned an error. With this fix, the `add` command was replaced by the `remove` command in the `net_del_dns` implementation. As a result, you can delete the DNS server by using the `net_del_dns` command.
    • Done
    • None
    • 57,005

      Description of problem:

      Trying to delete the DNS server, I get the following error message:
      -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
      grub> net_del_dns 192.168.122.1
      error: ../../grub-core/net/dns.c:646:no DNS reply received.
      -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

      This happens because the implementation is broken, it does a "add" internally.
      The issue is present Upstream as well.
      Patch attached fixes the issue.

      Version-Release number of selected component (if applicable):

      All grub2 releases

      How reproducible:

      N/A

              bootloader-eng-team bootloader -eng-team
              rhn-support-rmetrich Renaud Métrich
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Gabriela Fialova Gabriela Fialova
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: