Skip to content

Commit 0ac76e5

Browse files
authored
Merge pull request #169 from edwintorok/dns
CA-324959: do not loose DNS settings after a network reset
2 parents 8d8b754 + d531591 commit 0ac76e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/network_config.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let read_management_conf () =
6767
bridge
6868
in
6969
let mac = Network_utils.Ip.get_mac device in
70-
let ipv4_conf, ipv4_gateway, _dns =
70+
let ipv4_conf, ipv4_gateway, dns =
7171
match List.assoc "MODE" args with
7272
| "static" ->
7373
let ip = List.assoc "IP" args |> Unix.inet_addr_of_string in
@@ -93,7 +93,7 @@ let read_management_conf () =
9393
DHCP4, None, ([], [])
9494
in
9595
let phy_interface = {default_interface with persistent_i = true} in
96-
let bridge_interface = {default_interface with ipv4_conf; ipv4_gateway; persistent_i = true} in
96+
let bridge_interface = {default_interface with ipv4_conf; ipv4_gateway; persistent_i = true; dns} in
9797
let interface_config, bridge_config =
9898
let primary_bridge_conf = {default_bridge with
9999
bridge_mac = Some mac;

0 commit comments

Comments
 (0)