Which nameserver is used? | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Which nameserver is used?

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-25-2013
soeren1176 soeren1176 is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 25 February 2013, 4:47 AM EST
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
[SOLVED] Which nameserver is used?

Hello,

i change the nameserver in the resolv.conf file and want to test the new settings.

On Linux i can call nslookup and it shows the nameserver which is used:

Code:
># nslookup www.unix.com
Server:         XXX.XXX.XXX.XXX
Address:        XXX.XXX.XXX.XXX#53

Non-authoritative answer:
Name:   www.unix.com
Address: 4.59.125.171

If i use the same command on HPUX it only shows me this information:

Code:
># nslookup www.unix.com
Using /etc/hosts on:  HOST

looking up FILES
Trying DNS
Non-authoritative answer:
Name:    www.unix.com
Address:  4.59.125.171

Is there a chance to see the used nameserver in HPUX to?

Best Regards

soeren

Last edited by soeren1176; 02-25-2013 at 04:46 AM..
Sponsored Links
    #2  
Old 02-25-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 16 April 2014, 5:27 PM EDT
Location: Switzerland - GE
Posts: 5,490
Thanks: 148
Thanked 361 Times in 338 Posts
Look in /etc/resolv.conf file...
Sponsored Links
    #3  
Old 02-25-2013
soeren1176 soeren1176 is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 25 February 2013, 4:47 AM EST
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Thanks for the fast response.

The "dig" command shows the used namserver to:

Code:
dig www.unix.com

; <<>> DiG 9.3.2 <<>> www.unix.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 590
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

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

;; ANSWER SECTION:
www.unix.com.           77996   IN      A       4.59.125.171

;; Query time: 2 msec
;; SERVER: XXX.XXX.XXX.XXX#53(XXX.XXX.XXX.XXX)
;; WHEN: Mon Feb 25 10:39:52 2013
;; MSG SIZE  rcvd: 46

The Following User Says Thank You to soeren1176 For This Useful Post:
vbe (02-25-2013)
    #4  
Old 02-25-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 16 April 2014, 5:27 PM EDT
Location: Switzerland - GE
Posts: 5,490
Thanks: 148
Thanked 361 Times in 338 Posts
Was not standard in HP-UX ( have an old dig 2.o I installed years ago...) at the time and I have on 11.31 ... Thanks for the update!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NameServer not accessible rizwan65 UNIX for Dummies Questions & Answers 3 03-15-2011 01:09 PM
two dns search with 4 nameserver itik Red Hat 1 07-13-2009 06:20 PM
need advice on nameserver configuration wanex UNIX for Advanced & Expert Users 0 04-01-2006 08:53 AM



All times are GMT -4. The time now is 08:55 PM.