From 86f1d4f19b5bbf6cb4cbd31f5e28137bd11e23ab Mon Sep 17 00:00:00 2001 From: "www220@tom.com" Date: Wed, 4 Nov 2015 09:37:38 +0800 Subject: [PATCH] =?UTF-8?q?msh=E4=B8=AD=E5=A2=9E=E5=8A=A0=E4=BA=86dns?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/finsh/msh_cmd.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c index a4b865b028..99ca82f55d 100644 --- a/components/finsh/msh_cmd.c +++ b/components/finsh/msh_cmd.c @@ -282,6 +282,37 @@ int cmd_ifconfig(int argc, char **argv) } FINSH_FUNCTION_EXPORT_ALIAS(cmd_ifconfig, __cmd_ifconfig, list the information of network interfaces); +#ifdef RT_LWIP_DNS +#include +#include +int cmd_dns(int argc, char **argv) +{ + extern void set_dns(char* dns_server); + + if (argc == 1) + { + int index; + struct ip_addr ip_addr; + for(index=0; index