Which nameserver is used?


 
Thread Tools Search this Thread
Operating Systems HP-UX Which nameserver is used?
# 1  
Old 02-25-2013
[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 05:46 AM..
# 2  
Old 02-25-2013
Look in /etc/resolv.conf file...
# 3  
Old 02-25-2013
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

This User Gave Thanks to soeren1176 For This Post:
# 4  
Old 02-25-2013
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!
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bind: Can you configure multiple domains using the same nameserver

Can you add multiple domains to a nameserver without creating a new IP address? I have one IP address on my machine and have configured forward and reverse zone files. Names are resolving fine. I know I can add another domain to the named.conf file and create new forward and reverse files. what... (2 Replies)
Discussion started by: LinuxGirl
2 Replies

2. IP Networking

[Android-Networking] can't acces internet, while settings says all is ok => Routing/Nameserver prob

Hello, since a while, i have a very strange and frustrating network problem with my Huawei p6(Android 4.4.2). The ROM is "Omni Rom", i think - but it shouldn't matter. The problem is: when i try to connect through wlan (i have no mobile internet), according to the network manager of android,... (1 Reply)
Discussion started by: Palindrom
1 Replies

3. Web Development

(WHM) Primary Resolver and Nameserver confusion

Okay, I know generally how the internet works but here I am confused. Every website that I've worked on prior to this had a vendor providing Nameserver services -Meaning that I just pointed my DNS to their server and they do the rest. Now, I am confused by what the Primary Resolver is... (1 Reply)
Discussion started by: Astrocloud
1 Replies

4. UNIX for Dummies Questions & Answers

NameServer not accessible

Hi everybody I am facing a little problem with names servers. I have a VPS with Kloxo installed on it I have registered 2 name servers (i.e. ns1.domain.com and ns2.domain.com) past one month. These nameservers are not accessible yet. I have check the nameserver on internic site and they are... (3 Replies)
Discussion started by: rizwan65
3 Replies

5. Red Hat

two dns search with 4 nameserver

Hi all, Does someone use this kind of config on /etc/resolv.conf? search domain1.com domain2.com nameserver 1.x.x.x nameserver 2.x.x.x nameserver 3.x.x.x nameserver 4.x.x.x Is that going to work properly? I heard that only 3 lines are enabled on resolv.conf. Is that true? Thanks! (1 Reply)
Discussion started by: itik
1 Replies

6. UNIX for Advanced & Expert Users

need advice on nameserver configuration

on a Red Hat server I am running name server (ns1.mynameserver.com , ns2.mynameserver.com) can anybody advice how to set my server so that it automatically forwards domains that have ns1.mynameserver.com , ns2.mynameserver.com as nameserver address to a specific url/page, without actually adding... (0 Replies)
Discussion started by: wanex
0 Replies
Login or Register to Ask a Question