summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Lossent <alexandre.lossent@cern.ch>2016-11-23 17:57:15 +0100
committerAlex Lossent <alexandre.lossent@cern.ch>2016-11-23 17:57:15 +0100
commit023f8e1c292b00e9d88d3d0e6a567b7058f92d71 (patch)
tree09f17e6f295d6992ae097450fc4147131cb414af
parent90fb07f40aa3945e71d3941bca54867c649bc95f (diff)
downloadopenshift-023f8e1c292b00e9d88d3d0e6a567b7058f92d71.tar.gz
openshift-023f8e1c292b00e9d88d3d0e6a567b7058f92d71.tar.bz2
openshift-023f8e1c292b00e9d88d3d0e6a567b7058f92d71.tar.xz
openshift-023f8e1c292b00e9d88d3d0e6a567b7058f92d71.zip
Set nameservers on DHCPv6 event
A dhcp6-change event may happen on nodes running dual stack IPv4/IPv6 and DHCP, even if Openshift itself doesn't use IPv6. /etc/resolv.conf needs be adjusted as well in this case.
-rwxr-xr-xroles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh b/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
index c3d5efb9e..089c3f7e4 100755
--- a/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
+++ b/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
@@ -28,7 +28,7 @@ cd /etc/sysconfig/network-scripts
[ -f ../network ] && . ../network
-if [[ $2 =~ ^(up|dhcp4-change)$ ]]; then
+if [[ $2 =~ ^(up|dhcp4-change|dhcp6-change)$ ]]; then
# If the origin-upstream-dns config file changed we need to restart
NEEDS_RESTART=0
UPSTREAM_DNS='/etc/dnsmasq.d/origin-upstream-dns.conf'