diff options
author | Patrick Plenefisch | 2012-08-30 01:21:33 +0200 |
---|---|---|
committer | Michael Brown | 2012-09-10 16:31:14 +0200 |
commit | 8e4faa094824cae9633ad512ea40c12805435f82 (patch) | |
tree | 9e92aa5f3c7f29ca47b378704233ec5863b8db80 /src/include | |
parent | [smbios] Default to "hex" type for non-string SMBIOS settings (diff) | |
download | ipxe-8e4faa094824cae9633ad512ea40c12805435f82.tar.gz ipxe-8e4faa094824cae9633ad512ea40c12805435f82.tar.xz ipxe-8e4faa094824cae9633ad512ea40c12805435f82.zip |
[cmdline] Add standalone "nslookup" command
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/errfile.h | 1 | ||||
-rw-r--r-- | src/include/usr/nslookup.h | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index 5fc0e082..8edf5ccb 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -262,6 +262,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define ERRFILE_menu_cmd ( ERRFILE_OTHER | 0x002d0000 ) #define ERRFILE_validator ( ERRFILE_OTHER | 0x002e0000 ) #define ERRFILE_ocsp ( ERRFILE_OTHER | 0x002f0000 ) +#define ERRFILE_nslookup ( ERRFILE_OTHER | 0x00300000 ) /** @} */ diff --git a/src/include/usr/nslookup.h b/src/include/usr/nslookup.h new file mode 100644 index 00000000..d34649e9 --- /dev/null +++ b/src/include/usr/nslookup.h @@ -0,0 +1,14 @@ +#ifndef _USR_NSLOOKUP_H +#define _USR_NSLOOKUP_H + +/** @file + * + * Standalone name resolution + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +extern int nslookup ( const char *name, const char *setting_name ); + +#endif /* _USR_NSLOOKUP_H */ |