Hello,
Our application is facing a problem where any changes to /etc/resolv.conf are not getting reflected to the file that process is looking at.
The file contents collected from gdb of the process are like this:
(gdb) p (int) system("cat /etc/resolv.conf > /benu-data/admin/resol")
$8 = 0
(gdb) quit
root@nk-up:/benu-data/admin# cat resol
nameserver 10.96.0.10
search nkottapalli.svc.cluster.local svc.cluster.local cluster.local
options ndots:5
Whereas the contents of the file in the default and our application namespace looks like below.
root@nk-up:/benu-data/admin# cat /etc/resolv.conf
nameserver 172.18.58.122
nameserver 10.96.0.10
search nkottapalli.svc.cluster.local svc.cluster.local cluster.local
options ndots:5
root@nk-up:/benu-data/admin# cat /etc/netns/BenuApplication/resolv.conf
nameserver 172.18.58.122
nameserver 10.96.0.10
search nkottapalli.svc.cluster.local svc.cluster.local cluster.local
options ndots:5
root@nk-up:/benu-data/admin# ip netns exec BenuApplication bash
root@nk-up:/benu-data/admin# cat /etc/resolv.conf
nameserver 172.18.58.122
nameserver 10.96.0.10
search nkottapalli.svc.cluster.local svc.cluster.local cluster.local
options ndots:5
Can anyone answer when and why would this happen?