- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- nslookup problems
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 08:28 AM
03-21-2007 08:28 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 08:41 AM
03-21-2007 08:41 AM
Solutionopen("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libresolv.so.2", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/etc/resolv.conf", O_RDONLY) = 4
open("/etc/nsswitch.conf", O_RDONLY) = 4
open("/etc/ld.so.cache", O_RDONLY) = 4
open("/lib/libnss_files.so.2", O_RDONLY) = 4
open("/etc/host.conf", O_RDONLY) = 4
open("/etc/hosts", O_RDONLY) = 4
open("/etc/hosts", O_RDONLY) = 4
You can see that the /etc/hosts is explicitly open.
These are the files opened with nslookup:
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/usr/lib/liblwres.so.9", O_RDONLY) = 3
open("/usr/lib/libdns.so.21", O_RDONLY) = 3
open("/usr/lib/libbind9.so.0", O_RDONLY) = 3
open("/usr/lib/libisccfg.so.1", O_RDONLY) = 3
open("/usr/lib/libisc.so.11", O_RDONLY) = 3
open("/lib/libcrypto.so.6", O_RDONLY) = 3
open("/usr/lib/libisccc.so.0", O_RDONLY) = 3
open("/lib/libnsl.so.1", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/usr/lib/libz.so.1", O_RDONLY) = 3
open("/etc/resolv.conf", O_RDONLY) = 5
It does not open /etc/hosts and that is why it won't work. Also dig and host commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 08:46 AM
03-21-2007 08:46 AM
Re: nslookup problems
strace -o strace.out nslookup yourhosts.domain
grep open strace.out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 11:03 AM
03-21-2007 11:03 AM
Re: nslookup problems
I don't have RedHat AS3's package listing available to me right now, but if there is a RPM package named something like "bind9-utils", that contains one version of those utilities. I don't recall how the package(s) for the other version(s) might be named.
You can use a command like "rpm -qf /usr/bin/nslookup" to find out which RPM package gave you this tool.
Check it out on your group of three servers, then in the other group. Odds are, you'll get a different answer... and the two answers will tell you how to get the behaviour changed to your preferred way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 09:28 PM
03-21-2007 09:28 PM
Re: nslookup problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2007 12:41 AM
03-22-2007 12:41 AM