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:
># 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:
># 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
vbe
2
Look in /etc/resolv.conf
file...
Thanks for the fast response.
The "dig" command shows the used namserver to:
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
1 Like
vbe
4
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!