- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I find which process is doing DNS queries?
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
10-31-2014 12:10 PM - last edited on 11-02-2014 05:54 AM by Lisa198503
10-31-2014 12:10 PM - last edited on 11-02-2014 05:54 AM by Lisa198503
How can I find which process is doing DNS queries?
I have several servers doing numerous dns queries to my DNS servers for an unrecognized name. I need to find out what process is doing the queries. Here is an example of the queries captured with TCPdump.
14:41:20.442106 IP esdq0920.abc.def.com.53230 > xxxdns.abc.def.com.domain: 6263+ AAAA? kane. (22)
14:41:20.444671 IP esdq0920.abc.def.com.53231 > xxxdns.abc.def.com.domain: 6264+ A? kane.abc.def.com. (34)
14:41:20.445160 IP esdq0920.abc.def.com.53232 > xxxdns.abc.def.com.domain: 6265+ A? kane.essc.def.com. (35)
14:41:20.446055 IP esdq0920.abc.def.com.53233 > xxxdns.abc.def.com.domain: 6266+ A? kane.def.com. (30)
14:41:20.447854 IP esdq0920.abc.def.com.53234 > xxxdns.abc.def.com.domain: 6267+ A? kane.hyd.def.com. (34)
14:41:20.449797 IP esdq0920.abc.def.com.53235 > xxxdns.abc.def.com.domain: 6268+ A? kane.wywy.ad.etn.com. (38)
14:41:20.451811 IP esdq0920.abc.def.com.53236 > xxxdns.abc.def.com.domain: 6269+ A? kane.ch.def.com. (33)
P.S. This thread has been moved from HP-UX>General to HP-UX > networking. -HP Forum Moderator
- Tags:
- DNS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2014 06:29 PM
10-31-2014 06:29 PM
Re: How can I find which process is doing DNS queries?
If you use tusc on each process you might be able to detect this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2014 06:12 PM
12-14-2014 06:12 PM
Re: How can I find which process is doing DNS queries?
You can use the HP-UX tool nettl(1m) to take a network trace and then format it using netfmt with the -N (nice formatting) options. In the meta data of each pack you will see a field called "PID". In 11.31 this is the actual PID of the process that sent the packet. On previous version this is actually a kernel thread ID so you would need to use another tool to map that to a process ID. Of course you would have to look through the trace to find an outbound DNS packet and this only "works" if the process is long enough lived that you can catch it in a "ps" listing taken at the same time as the nettl trace was taken.