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