1833883 Members
1794 Online
110063 Solutions
New Discussion

caching name server

 
Johan Barelds
Frequent Advisor

caching name server

Hi all,Can someone explain how to setup(step by step) a caching nameserver on HP-UX 11.00 and use it in /etc/resolv.conf instead of a "normal" DNS?I see the option in SAM to configure a caching nameserver but when i specify "nameserver 127.0.0.1" in /etc/resolv.conf then it doesn't respond/resolv at all.The documentation is also very unclear about this subject.Thanks for any reply.Grz. Johan
Make my day..:-)
8 REPLIES 8
Geoff Wild
Honored Contributor

Re: caching name server

See this doc:

http://docs.hp.com/hpux/onlinedocs/B2355-90147/B2355-90147.html

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.
Jeff Schussele
Honored Contributor

Re: caching name server

Hi Barelds,

Don't use the loopback IP in resolv.conf, use the actual public IP for this server.
Test it by go into an interactive nslookup:

#nslookup
>server xxx.xxx.xxx.xxx (Use the IP of the server)
>host_to_resolv
>exit
#

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Karthik S S
Honored Contributor
Johan Barelds
Frequent Advisor

Re: caching name server

Hi Jeff!Here is what i get when i try to use the caching server:-------------#nslookupUsing /etc/hosts on: untrsp03> server 172.16.194.33Specifying a server has overridden the switch policy order.The reset command will reinstate the order specified by the switch policy.Default Name Server: [172.16.194.33]Address: 172.16.194.33> nslookup www.ad.nl*** Can't find address for server www.ad.nl: No response from server>-------------The ip of the server is 172.16.194.33As you can see it doesn't work as a DNS.Any clues?Grz. Johan
Make my day..:-)
Jeff Schussele
Honored Contributor

Re: caching name server

Hi Johan,

1) Have you followed the instructions in that doc that Geoff linked you to? All the necessary steps are there. This caching server doesn't look like it's running correctly. Are the proper files in place? Is the named server running on it? When you point to the primary server, does IT resolve your hosts?

2) Is the primary DNS server properly setup?
You know you pull the initial files from it & all subsequent updates.
Garbage in - Garbage out, they say.

BTW - 0 points for Geoff's post is an insult.
Read the manual - we can't do it *for* you. We can teach you how to fish, but you have to do the fishing.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Johan Barelds
Frequent Advisor

Re: caching name server

Jeff,It wasn't my intention to insult anyone.I stated in my first mailt that the documentation was not very clear which implied that i read the documentation.So answers pointing to this documention are of no help.However i admit it was better to assign points for the fact that they would answer me.About the problem.I did everything described in the document.All the proper files are in place: /etc/named.boot /etc/named.data/The hosts do resolve when i point to my primary DNS. Could it be that i need direct access to the DNS'es on the internet (i am in a protected area with my server).My initial primary DNS is setup fine and also works fine. For performance reasons however i want to setup the caching DNS.Any other suggestions?Thanks,Johan
Make my day..:-)
Geoff Wild
Honored Contributor

Re: caching name server

A Caching-only Nameserver

The following sample configuration is appropriate for a caching-only name server for use by clients internal to a corporation. All queries from outside clients are refused.
// Two corporate subnets we wish to allow queries from.
acl "corpnets" { 192.168.4.0/24; 192.168.7.0/24; };
options {
directory "/etc/namedb"; // Working directory
pid-file "named.pid"; // Put pid file in working dir
allow-query { "corpnets"; };
};
// Root server hints
zone "." { type hint; file "root.hint"; };
// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};

If you want to go outside your domain - then add forwarder.

in named.conf:

options {
directory "/etc/namedb";
forwarders {
192.168.2.100; // dns server1
192.168.2.101; // dns server2
192.158.9.100; // dns server3
};
forward only; // while in transition
};

BTW - don't use bind 4.x - update to 9.x:

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BIND9.2

Rgds...Geoff

PS - You didn't specify which documentation was unclear.

PSS: This is by far the best:

http://www.nominum.com/content/documents/bind9arm.pdf
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.
Johan Barelds
Frequent Advisor

Re: caching name server

That was the information i was looking for.It isn't in the standard docs.hp.com.I am now going to configure it.Thanks for your support all!Greetings,Barelds
Make my day..:-)