Operating System - HP-UX
1834513 Members
2142 Online
110068 Solutions
New Discussion

Is dig tool available on HPUX

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Is dig tool available on HPUX

Is dig or similar tool for nslookup available on hpux ?

Thanks,
Shiv
16 REPLIES 16
Ranjith_5
Honored Contributor
Solution

Re: Is dig tool available on HPUX

Ranjith_5
Honored Contributor

Re: Is dig tool available on HPUX

Hi Shiva,

First of all thank you very much for motivating all of us to respond you quickly. If your problems get resolved, please dont forget to close the thread. I think many of your thread are open still even after the problem resolution.

Please take some time to review those and close it.

Also try to assign pts to all queries. Doesnt mean that you have to assign high points to all your answers. You may assign even zero point if a response doesnt help you at all / not giving you any input. But assign points 0-10 accordingly and change this status in your profile.

I have assigned points to 1437 of 1661 responses to my questions

go through this info.

http://forums1.itrc.hp.com/service/forums/helptips.do?#28


Thanks once again,
Syam
Shivkumar
Super Advisor

Re: Is dig tool available on HPUX

Hi Syam,

I will try to close the thread henceforth. Just i was curious to know whether not closing the thread creates any issue ?

I would like to thank HP for providing such a great forum. I have become a fan of HPUX since last 6 months and have decided to work on HPUX/AIX/Mainframe unix flavors for the rest of my life.

I had been searching for the magazines in hpux or aix since long time to keep updated myself. I didn't get any and this forum helped me.

I have come to realize that unix can be mastered by sharing the expertse as it is very vast and we learn from mistakes most of the time.

This forum has given the opportunity to commit lesser mistakes in our day-to-day work. HP should motivate the forum members by various means so that they can continue contributing.

Thanks,
Shiv



Ranjith_5
Honored Contributor

Re: Is dig tool available on HPUX

Hi Shiva,

I see your spirit and thirst for knowledge..Keep it up. I feel it is the same spirit drives all the members who contributes to this forum and not the rewards. Atleast I am happy to say that I am getting emails from few ITRC members and I see it as a recognition.

be in touch with forum, and inturn, with all of us!!!

Wish you a Great Time here..!!
Syam
Patrick Wallek
Honored Contributor

Re: Is dig tool available on HPUX

I believe 'dig' is also installed on HP-UX when you install the BIND 9.2 package.

BIND 9.2
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BIND9.2
Arunvijai_4
Honored Contributor

Re: Is dig tool available on HPUX

Shiv, If you have 11iV1.6 or higher, dig will be default in your system. It is part of

InternetSrvcs.INETSVCS2-RUN: /usr/bin/dig

for 11.11, you can download from software.hp.com

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Shivkumar
Super Advisor

Re: Is dig tool available on HPUX

I just tried using the dig command with the syntax like:-

$dig www.abc.com

This request got timed out.

Is there any different syntax than above ?

Secondly, how to use increased timed out parameter with a suitable command option ?

Thanks,
Shiv

Ranjith_5
Honored Contributor

Re: Is dig tool available on HPUX

Hi Shiva,

Example for dig command:

A typical invocation of dig looks like:

#dig @server name type

----------------------------------------------------------

#dig +qr www.isc.org any -x 127.0.0.1 isc.org ns +noqr


shows how dig could be used from the command line to make three lookups: an ANY query for www.isc.org, a reverse lookup of 127.0.0.1 and a query for the NS records of isc.org. A global query option of +qr is applied, so that dig shows the initial query it made for each lookup. The final query has a local query option of +noqr which means that dig will not print the initial query when it looks up the NS records for isc.org.

Hope this helps.

Regards,
Syam
Muthukumar_5
Honored Contributor

Re: Is dig tool available on HPUX

You can get dig for hp-ux as,

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/dig-2.0/

Refer man page:

http://gatekeep.cs.utah.edu/hppd/hpux/Networking/Admin/dig-2.0/man.html

use this operation.

hth.
Easy to suggest when don't know about the problem!
Ranjith_5
Honored Contributor

Re: Is dig tool available on HPUX

Hi Shiva,

Command option for timout is +time=T

This sets the timeout for a query to T seconds. The default time out is 5 seconds. An attempt to set T to less than 1 will result in a query timeout of 1 second being applied.

See the example of dig in the last post you can add the +time=T with that ans specify timeout in T seconds.


Regards,
Syam
Muthukumar_5
Honored Contributor

Re: Is dig tool available on HPUX

You can just use nsquery or nslookup or ping instead.

If you are getting timed out then, remote machine is not running or routing problem.

# ping www.abc.com
# nslookup www.abc.com

what it is saying?

-Muthu
Easy to suggest when don't know about the problem!
rick jones
Honored Contributor

Re: Is dig tool available on HPUX

If you find that the dig or other named-related stuff from either HP or the porting sites are not as new as you would like, the bits from www.isc.org have a long history of successful compilation on HP-UX straight out of the tar files.
there is no rest for the wicked yet the virtuous have no pillows
Shivkumar
Super Advisor

Re: Is dig tool available on HPUX

Sirs,

I tried to use dig after install but got the following error:-


# ./dig www.abc.com

; <<>> DiG 2.0 <<>> www.abc.com
;; res_send to server default -- 0.0.0.0: Connection timed out
#

Can someone suggest how to fix this ?

Thanks,
Shiv
Geoff Wild
Honored Contributor

Re: Is dig tool available on HPUX

Sounds like your resolver isn't setup or your DNS servers don't forward to the internet...

You should get:

# dig www.abc.com

; <<>> DiG named 9.2.0 <<>> www.abc.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6710
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;www.abc.com. IN A

;; ANSWER SECTION:
www.abc.com. 287 IN CNAME abc.com.
abc.com. 286 IN A 199.181.132.250

;; AUTHORITY SECTION:
abc.com. 17693 IN NS orns01.dig.com.
abc.com. 17693 IN NS orns02.dig.com.
abc.com. 17693 IN NS sens01.dig.com.
abc.com. 17693 IN NS sens02.dig.com.

;; ADDITIONAL SECTION:
orns01.dig.com. 20178 IN A 198.187.189.44
orns02.dig.com. 104721 IN A 198.187.190.44
sens01.dig.com. 18347 IN A 199.181.134.16
sens02.dig.com. 18347 IN A 199.181.135.199

;; Query time: 133 msec
;; SERVER: 156.44.162.125#53(156.44.162.125)
;; WHEN: Thu Oct 27 13:44:40 2005
;; MSG SIZE rcvd: 211


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.
Geoff Wild
Honored Contributor

Re: Is dig tool available on HPUX

What is in your /etc/resolv.conf?

Also - the hosts line in /etc/nsswitch.conf

You need a valid server(s) ip(s) in resolv.conf and dns on the hosts line in nsswitch.conf:

hosts: files [NOTFOUND=CONTINUE] dns

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.
Ranjith_5
Honored Contributor

Re: Is dig tool available on HPUX

Hi Shiva,

See the last example given for dig command. I think you missed a @ in the command line.

See this thread.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953668

Are u able to resolve using nslookup? See the order of name resolution priorities set in /etc/nsswitch.conf and Order of DNS servers specified in /etc/resolv.conf. Also increase the timout value in your dig command and try.


Regards,
Syam