In default DNS mode VMs get list of DNS resolvers
from OS on which vRouter agent is running.
Right now, this list is read from /etc/resolv.conf file,
so it doesn't work on Windows.
To get the list of known DNS servers on Windows, we have to use
"iphlpapi" module, which is IP helper API.
This commit will logically divide implementation of building
the list of DNS resolvers in matter of OS the agent is running on.
Reviewed: https:/ /review. opencontrail. org/46313 github. com/Juniper/ contrail- controller/ commit/ d362b168999011a ba674d9ef060860 8da6ae9f87
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master
commit d362b168999011a ba674d9ef060860 8da6ae9f87
Author: Arkadiusz Kudan <email address hidden>
Date: Wed Sep 19 14:59:01 2018 +0200
Implement default DNS mode on Windows
In default DNS mode VMs get list of DNS resolvers
from OS on which vRouter agent is running.
Right now, this list is read from /etc/resolv.conf file,
so it doesn't work on Windows.
To get the list of known DNS servers on Windows, we have to use
"iphlpapi" module, which is IP helper API.
This commit will logically divide implementation of building
the list of DNS resolvers in matter of OS the agent is running on.
Change-Id: Iad1b1dcd2237a4 f005c8d3207b0ad 3e87499326a
Partial-Bug: #1737177