1842078 Members
2318 Online
110186 Solutions
New Discussion

DNS questions

 
SOLVED
Go to solution
generic_1
Respected Contributor

DNS questions

What is the best way with built in HP tools to tell what processes are hammering a DNS server?
I know which servers are the culprits, but I have many apps running on these servers and would like to single them out.

Also on a side note, without loading a sniffer or other externel tool is there an easy way to see what ip is connecting to a port on a server?
5 REPLIES 5
Juergen Tappe
Valued Contributor

Re: DNS questions

Try to use "lsof" a free tool listing any open files and network connection per process.

Its downloaded anywhere, but I cannot remeber where. Perhaps somebody knows the URL......

A standard Hp-UX command is : netstat -an
listing all incoming and outgoping used ports with IP Adress, but there is no easy way to indicated the related proccess ....
Working together
Sundar_7
Honored Contributor

Re: DNS questions

For the second question, you can use netstat to find out the foreign IP address/Port

# netstat -an | grep -i EST

This should give you the established TCP connections. Here you can find both the local and the remote sockets (IP:port)

For the first question, as far as I can reach, I dont believe there is a way - my understanding is that application use the resolver libraries gethostbyaddr() and gethostbyname() for reverse and forward lookups. I would be curious to know if there is an alternate to this.
Learn What to do ,How to do and more importantly When to do ?
generic_1
Respected Contributor

Re: DNS questions

How would I use lsof to capture what processes are making DNS requests?
Thanks for your replies.
Geoff Wild
Honored Contributor

Re: DNS questions

lsof can be dl'd from:

http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.70/

Here's the online man page:

http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.70/man.html


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
harry d brown jr
Honored Contributor
Solution

Re: DNS questions


lsof is good for a "snapshot" of what's going on, but if you really want to know what's hammering your DNS, I suggest you upgrade BIND to 9.2, then turn debugging on.

live free or die
harry
Live Free or Die