Skip to content

Commit 07dfa6e

Browse files
vittyvkliuw
authored andcommitted
hv/hv_kvp_daemon: Pass NIC name to hv_get_dns_info as well
The reference implementation of hv_get_dns_info which is in the tree uses /etc/resolv.conf to get DNS servers and this does not require to know which NIC is queried. Distro specific implementations, however, may want to provide per-NIC, fine grained information. E.g. NetworkManager keeps track of DNS servers per connection. Similar to hv_get_dhcp_info, pass NIC name as a parameter to hv_get_dns_info script. Signed-off-by: Vitaly Kuznetsov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
1 parent 07a756a commit 07dfa6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/hv/hv_kvp_daemon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static void kvp_get_ipconfig_info(char *if_name,
725725
* .
726726
*/
727727

728-
sprintf(cmd, KVP_SCRIPTS_PATH "%s", "hv_get_dns_info");
728+
sprintf(cmd, KVP_SCRIPTS_PATH "%s %s", "hv_get_dns_info", if_name);
729729

730730
/*
731731
* Execute the command to gather DNS info.

0 commit comments

Comments
 (0)