[Bug nss/20900] New: __res_maybe_init doesn't work with DHCP

hjl.tools at gmail dot com sourceware-bugzilla@sourceware.org
Thu Dec 1 17:24:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=20900

            Bug ID: 20900
           Summary: __res_maybe_init doesn't work with DHCP
           Product: glibc
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nss
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

On Fedora 24, there is

[hjl@gnu-6 ~]$ ls -l /etc/resolv.conf 
lrwxrwxrwx 1 root root 35 Nov 30 11:44 /etc/resolv.conf ->
/var/run/NetworkManager/resolv.conf
[hjl@gnu-6 ~]$ 

Before NetworkManager starts DHCP, /var/run/NetworkManager/resolv.conf
doesn't exist and the content of /etc/resolv.conf may change over time.
But __res_maybe_init never checks if /etc/resolv.conf changes.  When a
daemon process starts before DHCP or /var/run/NetworkManager/resolv.conf
is changed by DHCP, the daemon process gets the wrong DNS results.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list