- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Possible to log all name lookups?
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
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
12-11-2002 11:53 AM
12-11-2002 11:53 AM
Possible to log all name lookups?
Specificly, I have a system with around 300 names in /etc/hosts that I suspect aren't needed at all, and I'd like to log name->address lookups for a week to be sure.
I am certain I can do this by loading the /etc/hosts entries into a bind cache running only on that particular server and logging all of the name lookups (after removing the entries from /etc/hosts), but is there a simpler way?
We're finally getting around to switching the last of our hosts from using only /etc/hosts over to using DNS and one of the systems has a lot of entries in /etc/hosts that aren't reflected in DNS, probably because they're obsolete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2002 12:05 PM
12-11-2002 12:05 PM
Re: Possible to log all name lookups?
Suggestion would be to copy /etc/hosts to /etc/hosts.last and remove all your entries. When users say that they cant access something, put the entry into DNS or back into hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2002 12:07 PM
12-11-2002 12:07 PM
Re: Possible to log all name lookups?
live free or die
harru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2002 12:20 PM
12-11-2002 12:20 PM
Re: Possible to log all name lookups?
I'm fairly certain you're wrong - anything's possible given time and resources and motivation, but all of those are lacking in me today. :-)
Solely for discussion purposes though I'll mention that it would be nice functionality to have. Also I'd think that you could do this with something like truss/tusc/trace by logging all the system calls you were interested in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2002 12:32 PM
12-11-2002 12:32 PM
Re: Possible to log all name lookups?
Most routines require a single binary, thus at a minimum you can make wrappers for the binaries and do many nice things.
In the case name resolution, there are many different libraries containing several calls each to handle name translation. This is in addition to the external applications such as dig and nslookup.
I seriously doubt that HP would give you their code, but you could try to get it. Then you would have to hack their code and add your own logging functions. This would have to be repeated for every library with routines for name resolving.
If you can do the above, then Harry and I are wrong. Feel free to try, and let me know the outcome. Im sure Harry and I would both like to know.