I had DNS server issues and realized that the IP address of the used DNS server is one of the strings of /usr/sbin/NetworkManager. I haven’t got the chance to compare it with my home installation yet.
What I did.
dig google.comto find out which dns-server is being used -> $ DNS_SERVER
- Next I did
sudo grep -rnw '/' -e $ DNS_SERVER
- After I saw the binary coming up i did
strings usr/sbin/NetworkManager | grep $ DNS_SERVERwhich means to me that the IP address of the DNS server used is hard-coded in the binary.
Can someone explain how a theoretically dynamic string becomes part of a binary file?