Resolve host name to network address


  nslookup <setting> <hostname>


Look up the IP address for

  nslookup address
  echo ${address}

Set TFTP next-server address to

  nslookup net0/next-server


Set value of the specified configuration setting to the network address corresponding to the specified host name.

Command status

Success The name was resolved successfully, and the setting was applied
Failure The name was not resolved successfully, or the setting could not be applied

See also

Build options

This command is available only when the build option NSLOOKUP_CMD is enabled.


You should not generally need to use the nslookup command, since you can simply include a host name as part of a URI. For example:

cmd/nslookup.txt ยท Last modified: 2012/09/10 21:55 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL
References to "iPXE" may not be altered or removed.