diff --git a/tests/gnrc_sock_dns/Makefile b/tests/gnrc_sock_dns/Makefile
index a0abd781fba501da52845852163c37eaf8116058..7bdcdc41d1ee74b745b11cfd3c85718efbeb5e54 100644
--- a/tests/gnrc_sock_dns/Makefile
+++ b/tests/gnrc_sock_dns/Makefile
@@ -9,6 +9,7 @@ BOARD_INSUFFICIENT_MEMORY := chronos telosb nucleo-f042k6 nucleo-f031k6 \
 USEMODULE += sock_dns
 USEMODULE += gnrc_sock_udp
 USEMODULE += gnrc_ipv6_default
+USEMODULE += gnrc_ipv6_nib_dns
 USEMODULE += gnrc_netdev_default
 USEMODULE += auto_init_gnrc_netif
 
diff --git a/tests/gnrc_sock_dns/main.c b/tests/gnrc_sock_dns/main.c
index 44fe24f1b0d135bfdc0dfc2d4ecbaeb25694607a..52700febbbbf7df4ea24d63a52455056cda59aef 100644
--- a/tests/gnrc_sock_dns/main.c
+++ b/tests/gnrc_sock_dns/main.c
@@ -31,10 +31,6 @@
 #define TEST_NAME   "example.org"
 #endif
 
-#ifndef DNS_SERVER
-#define DNS_SERVER  "[2001:db8::1]:53"
-#endif
-
 /* import "ifconfig" shell command, used for printing addresses */
 
 extern int _gnrc_netif_config(int argc, char **argv);
@@ -43,8 +39,6 @@ int main(void)
 {
     uint8_t addr[16] = {0};
 
-    sock_udp_str2ep(&sock_dns_server, DNS_SERVER);
-
     puts("waiting for router advertisement...");
     xtimer_usleep(1U*1000000);