I\'m trying to use libresolv to read both the IPv4 and IPv6 nameservers in my /etc/resolv.conf
file:
# Dynamic resolv.conf(5) file for glibc resolve
You really should not access the _u._ext
parts of the resolver state, they are an internal implementation detail. The nscount6
member is currently unused and always zero. It had to be kept to avoid changing the ABI as the result of struct offset/size changes.
If you need the nameserver list, you should parse /etc/resolv.conf
yourself. Note that eventually, glibc will also support more than three name servers, and those extra resolvers will not be reflected in the public resolver state.