Operating System - HP-UX
1823121 Members
3387 Online
109646 Solutions
New Discussion юеВ

is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

 
SOLVED
Go to solution
VINU
Frequent Advisor

is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

hello friends,

is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

regds
vinu
7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

Jeff Schussele
Honored Contributor

Re: is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

Hi Vinu,

Not sure I understand your question fully, but if all you're looking for is packet sniffer software. etherreal is a fine product but it's a 3rd party product.
HP-UX has a built in command called nettl
man nettl for details. Not real difficult to use but can produce a *large* amount of output in a short time period.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Nicolas Dumeige
Esteemed Contributor

Re: is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

Vinu,

You might also consider tcpdump.
It comes with a lot a frontend and interpretation tools.

Cheers

Nicolas
All different, all Unix
Bill Hassell
Honored Contributor

Re: is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

If all you are looking for are the DNS requests coming into your server, you can signal named to start logging it's activities. The signal is SIGUSR1 (SIGUSR2 to turn off logging). SIGUSR1 will increment the details of DNS logging each time you send it:

kill -SIGUSR1 $(cat /var/run/named.pid)

If you have a very busy nameserver (named is consuming a lot of time), then the logfile /var/tmp/named.run will grow vary rapidly. Usually only a few seconds are needed to find boxes that are slamming your nameserver. Often you'll find commercial backup programs will generate thousands of queries, once for every file). The fix is easy: change the boxes that are running the backup software to look at /etc/hosts first and put the common machine names in that file. Then change /eetc/nsswitch.conf to look at files, then dns and both your DNS server and the backup programs will be much happier.


Bill Hassell, sysadmin
Sanjay_6
Honored Contributor
rick jones
Honored Contributor
Solution

Re: is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

as mentioned, nettl is the network tracing tool installed by default on HP-UX.

other tools include ethereal and tcpdump - tcpdump is available from www.tcpdump.org, or you can install it from the "HP Internet Express" software from software.hp.com.

further, if you know the PID of the process issuing DNS requests, you could get some idea of what it was doing by running tusc (ftp.cup.hp.com:/dist/networking/tools/) in verbose mode and looking at the system calls. that will also show you if it is say reading /etc/hosts or perhaps even if it is trying NIS or whatnot.
there is no rest for the wicked yet the virtuous have no pillows
VINU
Frequent Advisor

Re: is there any command like 'snoop' in solaris to check the dns requests in HP-UX.

thanks for ur inputs