Operating System - HP-UX
1760548 Members
2712 Online
108894 Solutions
New Discussion юеВ

Re: Is dig tool available on HPUX

 
SOLVED
Go to solution
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