diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2024-10-16 12:04:07 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-16 11:11:56 -0600 |
commit | aedcfec9ed788588b9a7ed368fcbc4d6e6588461 (patch) | |
tree | 899d0e6fb415e582dcbea929522173b5a3e4e7cf /cmd/net-lwip.c | |
parent | 7a5e00d5c349ee6e123d7c17904730b9deaa8047 (diff) |
net: lwip: add dns command
Add CMD_DNS when NET_LWIP is enabled to provide the dns command using
lwIP.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'cmd/net-lwip.c')
-rw-r--r-- | cmd/net-lwip.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/net-lwip.c b/cmd/net-lwip.c index feed719beef..c021da6a674 100644 --- a/cmd/net-lwip.c +++ b/cmd/net-lwip.c @@ -27,3 +27,11 @@ U_BOOT_CMD( "[loadAddress] [[hostIPaddr:]bootfilename]" ); #endif + +#if defined(CONFIG_CMD_DNS) +U_BOOT_CMD( + dns, 3, 1, do_dns, + "lookup the IP of a hostname", + "hostname [envvar]" +); +#endif |