diff --git a/examples/bridge/bridge_main.c b/examples/bridge/bridge_main.c index da15dc2c1..38cecf633 100644 --- a/examples/bridge/bridge_main.c +++ b/examples/bridge/bridge_main.c @@ -131,10 +131,6 @@ printf("NET1: Configuring %s\n", CONFIG_EXAMPLES_BRIDGE_NET1_IFNAME); netlib_set_ipv4netmask(CONFIG_EXAMPLES_BRIDGE_NET1_IFNAME, &addr); #ifdef CONFIG_EXAMPLES_BRIDGE_NET1_DHCPC - /* Set up the resolver */ - - dns_bind(); - /* Get the MAC address of the NIC */ netlib_getmacaddr(CONFIG_EXAMPLES_BRIDGE_NET1_IFNAME, mac); @@ -256,10 +252,6 @@ printf("NET2: Configuring %s\n", CONFIG_EXAMPLES_BRIDGE_NET2_IFNAME); netlib_set_ipv4netmask(CONFIG_EXAMPLES_BRIDGE_NET2_IFNAME, &addr); #ifdef CONFIG_EXAMPLES_BRIDGE_NET2_DHCPC - /* Set up the resolver */ - - dns_bind(); - /* Get the MAC address of the NIC */ netlib_getmacaddr(CONFIG_EXAMPLES_BRIDGE_NET2_IFNAME, mac); diff --git a/examples/discover/discover_main.c b/examples/discover/discover_main.c index 01668cf90..1384ec8b5 100644 --- a/examples/discover/discover_main.c +++ b/examples/discover/discover_main.c @@ -136,10 +136,6 @@ int discover_main(int argc, char *argv[]) netlib_set_ipv4netmask("eth0", &addr); #ifdef CONFIG_EXAMPLES_DISCOVER_DHCPC - /* Set up the resolver */ - - dns_bind(); - /* Get the MAC address of the NIC */ netlib_getmacaddr("eth0", mac); diff --git a/examples/tcpecho/tcpecho_main.c b/examples/tcpecho/tcpecho_main.c index b6a07c353..d27e96588 100644 --- a/examples/tcpecho/tcpecho_main.c +++ b/examples/tcpecho/tcpecho_main.c @@ -145,10 +145,6 @@ static int tcpecho_netsetup() netlib_set_ipv4netmask("eth0", &addr); #ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC - /* Set up the resolver */ - - dns_bind(); - /* Get the MAC address of the NIC */ netlib_getmacaddr("eth0", mac); diff --git a/examples/webserver/webserver_main.c b/examples/webserver/webserver_main.c index 770f9a23e..512c79bda 100644 --- a/examples/webserver/webserver_main.c +++ b/examples/webserver/webserver_main.c @@ -142,10 +142,6 @@ int webserver_main(int argc, char *argv[]) netlib_set_ipv4netmask("eth0", &addr); #ifdef CONFIG_EXAMPLES_WEBSERVER_DHCPC - /* Set up the resolver */ - - dns_bind(); - /* Get the MAC address of the NIC */ netlib_getmacaddr("eth0", mac); diff --git a/examples/xmlrpc/xmlrpc_main.c b/examples/xmlrpc/xmlrpc_main.c index 0060b465f..184b00484 100644 --- a/examples/xmlrpc/xmlrpc_main.c +++ b/examples/xmlrpc/xmlrpc_main.c @@ -309,10 +309,6 @@ static int xmlrpc_netinit(void) netlib_set_ipv4netmask("eth0", &addr); #ifdef CONFIG_EXAMPLES_XMLRPC_DHCPC - /* Set up the resolver */ - - dns_bind(); - /* Get the MAC address of the NIC */ netlib_getmacaddr("eth0", mac); diff --git a/nshlib/nsh_netinit.c b/nshlib/nsh_netinit.c index fc91af2db..17ef4abb4 100644 --- a/nshlib/nsh_netinit.c +++ b/nshlib/nsh_netinit.c @@ -287,15 +287,10 @@ static void nsh_netinit_configure(void) #endif /* CONFIG_NET_ICMPv6_AUTOCONF */ #endif /* CONFIG_NET_IPv6 */ -#if defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_DNS) - /* Set up the resolver */ - - dns_bind(); #if defined(CONFIG_NSH_DNS) addr.s_addr = HTONL(CONFIG_NSH_DNSIPADDR); dns_setserver(&addr); #endif -#endif #if defined(CONFIG_NSH_DHCPC) /* Get the MAC address of the NIC */