Operating System - HP-UX
1838606 Members
3041 Online
110128 Solutions
New Discussion

Re: How to get the list of ip using hpux 11.00 DNS Server?

 
PSS SYS ADMIN
Super Advisor

How to get the list of ip using hpux 11.00 DNS Server?

Hi everyone,
I want to trace the list of the ip that use the hpux 11.00 DNS server.
What I have to do?

Regards...
PSS
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: How to get the list of ip using hpux 11.00 DNS Server?

Go to the /etc/named.data directory. Have a look at all the db.* files in the directory. Those files contain all of your DNS IP Addresses and names.

You could also look at the /etc/hosts file on your primary DNS server as it *SHOULD* list all hosts as well.
PSS SYS ADMIN
Super Advisor

Re: How to get the list of ip using hpux 11.00 DNS Server?

I want to know the ip of all the clients using the hpux 11.00 DNS Server for name resolution
Patrick Wallek
Honored Contributor

Re: How to get the list of ip using hpux 11.00 DNS Server?

I am not sure that is possible. I don't think there is a way to trace who does a lookup against a DNS Server.

The only way that I know if to 1) Check the config. of all of your machines or 2) Turn DNS off and see what breaks and who screams.
PSS SYS ADMIN
Super Advisor

Re: How to get the list of ip using hpux 11.00 DNS Server?

Patrick this is a solution, but the as a subsequent action I'll have to find a new job.
Patrick Wallek
Honored Contributor

Re: How to get the list of ip using hpux 11.00 DNS Server?

The 2nd was given in jest. :) I certainly don't recommend that for a production environment.
Sundar_7
Honored Contributor

Re: How to get the list of ip using hpux 11.00 DNS Server?

Hi,

Install tcpdump or similar sniffer softwares in the DNS server and run it for a couple of days and log only the traffic to port 53 UDP & 53 TCP.

Looking at the source IP address from the LOG file , I guess u should be able to get a fair idea of who is using it ?

Makes sense ?
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: How to get the list of ip using hpux 11.00 DNS Server?

I would think a utility parsing the netstat -an | grep 53 output to a log file could be run regularly to get you this data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sundar_7
Honored Contributor

Re: How to get the list of ip using hpux 11.00 DNS Server?


Small resolver queries from the DNS client uses 53/UDP and 53/TCP is only used in case of zone transfers, so I would really doubt if netstat -an | grep 53 is going to get u something useful.
Learn What to do ,How to do and more importantly When to do ?