Signed-off-by: Hans Leidekker hans@codeweavers.com --- programs/ipconfig/ipconfig.c | 4 +++- programs/ipconfig/ipconfig.h | 1 + programs/ipconfig/ipconfig.rc | 1 + 3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/programs/ipconfig/ipconfig.c b/programs/ipconfig/ipconfig.c index 29f86521b07..f985d337265 100644 --- a/programs/ipconfig/ipconfig.c +++ b/programs/ipconfig/ipconfig.c @@ -277,11 +277,13 @@ static void print_full_information(void) if (GetNetworkParams(info, &out) == ERROR_SUCCESS) { WCHAR hostnameW[MAX_HOSTNAME_LEN + 4]; + WCHAR dnssuffixW[MAX_DOMAIN_NAME_LEN + 4];
MultiByteToWideChar(CP_ACP, 0, info->HostName, -1, hostnameW, ARRAY_SIZE(hostnameW)); print_field(STRING_HOSTNAME, hostnameW);
- /* FIXME: Output primary DNS suffix. */ + MultiByteToWideChar(CP_ACP, 0, info->DomainName, -1, dnssuffixW, ARRAY_SIZE(dnssuffixW)); + print_field(STRING_PRIMARY_DNS_SUFFIX, dnssuffixW);
print_field(STRING_NODE_TYPE, nodetype_to_string(info->NodeType)); print_field(STRING_IP_ROUTING, boolean_to_string(info->EnableRouting)); diff --git a/programs/ipconfig/ipconfig.h b/programs/ipconfig/ipconfig.h index 579ba70954a..63e9ef45a8c 100644 --- a/programs/ipconfig/ipconfig.h +++ b/programs/ipconfig/ipconfig.h @@ -42,3 +42,4 @@ #define STRING_NO 119 #define STRING_DEFAULT_GATEWAY 120 #define STRING_IP6_ADDRESS 121 +#define STRING_PRIMARY_DNS_SUFFIX 122 diff --git a/programs/ipconfig/ipconfig.rc b/programs/ipconfig/ipconfig.rc index b7cf14b6e50..4ea0a633c7d 100644 --- a/programs/ipconfig/ipconfig.rc +++ b/programs/ipconfig/ipconfig.rc @@ -34,6 +34,7 @@ STRINGTABLE STRING_CONN_DNS_SUFFIX, "Connection-specific DNS suffix" STRING_IP_ADDRESS, "IPv4 address" STRING_HOSTNAME, "Hostname" + STRING_PRIMARY_DNS_SUFFIX, "Primary DNS suffix" STRING_NODE_TYPE, "Node type" STRING_BROADCAST, "Broadcast" STRING_PEER_TO_PEER, "Peer-to-peer"