DNS resolution in a container
Posted: Mon Feb 08, 2021 5:50 pm
ip address 192.168.X.Y/24
cat>/etc/resolv.conf<<EOF
nameserver 192.168.Z.Z
EOF
Dear Community Please advise. Above there is script written to linux container eve configuration tab in order to maintain dns resolution after container reload.
If it is entered manually when container loaded - it is works (ip setting works always - it is OK). But if it is entered in configuration tab and container reloaded -it does not work.
Seems I missed something. Thank you much all for future advise.
cat>/etc/resolv.conf<<EOF
nameserver 192.168.Z.Z
EOF
Dear Community Please advise. Above there is script written to linux container eve configuration tab in order to maintain dns resolution after container reload.
If it is entered manually when container loaded - it is works (ip setting works always - it is OK). But if it is entered in configuration tab and container reloaded -it does not work.
Seems I missed something. Thank you much all for future advise.