READ Free Dumps For LPI- 117-201
Question ID 21514 | Which of these ways can be used to only allow access to a DNS server from specified networks/hosts?
|
Option A | Using the limit{...;};statement in the named configuration file.
|
Option B | Using the allow-query{...;};statement in the named configuration file.
|
Option C | Using the answer only{...;};statement in the named configuration file.
|
Option D | Using the answer{...;};statement in the named configuration file.
|
Option E | Using the query access{...;};statement in the named configuration file.
|
Correct Answer | B |
Explanation Explanation: To allow a specific client access to the dns server use Allow-query { 192.168.0.1; }; Alternatively you can use the acl-keyword acl lan { 192.168.0.1; }; Allow-query { lan; };
Question ID 21515 | Which of these commands allows you to use shared libraries that are in /usr/local/lib?
|
Option A | export LD_PRELOAD=/usr/local/lib
|
Option B | export LD_LIBRARY_PATH=/usr/local/lib
|
Option C | ldconfig /usr/local/lib
|
Option D | ldd /usr/local/lib
|
Correct Answer | C |
Explanation Explanation: From the man pages: ldconfig creates, updates, and removes the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so. conf, and in the trusted directories (/usr/lib and /lib). ldconfig checks the header and file names of the libraries it encounters when determining which versions should have their links updated. ldconfig ignores symbolic links when scanning for libraries. ldd - print shared library dependencies LD_PRELOAD - a whitespace-separated list of additional, user-specified, ELF shared libraries to be loaded before all others. This can be used to selectively override functions in other shared libraries. For setuser- ID/ set-group-ID ELF binaries, only libraries in the standard search directories that are also set-user-ID will be loaded. LD_LIBRARY_PATH - a colon-separated list of directories in which to search for ELF libraries at executiontime. Similar to the PATH environment variable