Operating System - HP-UX
1828490 Members
2527 Online
109978 Solutions
New Discussion

How to enable local Cache DNS

 
Arun Vijay V C
Frequent Advisor

How to enable local Cache DNS

Can any one provide me the procedure of configuring/enable local Cache DNS in a Hp Unix server.
Server is a fully pacthed 11.23. In fact its a NNM (Network node Monitoring) server which has to communicate to lot of other devices every time.
19 REPLIES 19
Stephan.
Honored Contributor

Re: How to enable local Cache DNS

Easiest way will be using SAM

#sam
- "Networking and Communications"
- "DNS (BIND)"
- "DNS Local Name Server"
- "Actions"
- "Configure Caching-Only Server"

Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

Hi..
Can you give me the full procedure?
thanks,
Arun
Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

Thanks Michal...
As per the procedure I need to copy the some important files from the DNS master server to the cleint like /etc/dns/boot.cacheonly,/etc/dns/db.cache and /etc/dns/db.127.0.0 and all. But here my master DNS server is windows server.
How I will get those file from this wiondows server.

ALso, let me confirm this local DNS cache is for what. My understanding is DNS information (db cache) from the DNS server will be stored in the local server so that every time it no need check in the DNS server for the same info. Mainly this is required the servers like NNM which is communicating with lot of diffrent devices (Servers, Switches, routers etc) every time. Please correct me if I am wrong.
Thanks,
Arun
Michal Kapalka (mikap)
Honored Contributor

Re: How to enable local Cache DNS

hi,

i don't know exactly your configuration of network, but if you have a |NDS server on Windows it;s ok, the dns cache only make internelal database, so the first time he will forward the requeste to your dns server, and if he recieve the record he will cache it.

When you request second time, he will find the record inside the cache, and if the expiration of the record are ok he will answer, if not he will contact the dns server one from twelve root servers.

mikap
Michal Kapalka (mikap)
Honored Contributor

Re: How to enable local Cache DNS

Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

Hi Michal,

There my question is how I will get the required (mentioned) files from windows DNS server.

Also, the new link you given is not working :).

Thanks,
Arun
Michal Kapalka (mikap)
Honored Contributor

Re: How to enable local Cache DNS

hi,

checked all links, and still working.

what of files from windows server ???,
cache server, is only for caching, not to provide zone such a master/slave.


mikap
Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

Hi Michal,
Thanks for your immediate responses...
As per the procedure given by you, for enabling local Cache, We have to copy the etc/dns/boot.cacheonly,/etc/dns/db.cache and /etc/dns/db.127.0.0 from the master server and start the named service.

How to get these files from Windows server?

Thanks,
Arun..
Michal Kapalka (mikap)
Honored Contributor

Re: How to enable local Cache DNS

hi,

this is an example from linux host but its the same as on Unix .


http://linux.about.com/od/lna_guide/a/gdelna54t03.htm


mikap

Michal Kapalka (mikap)
Honored Contributor

Re: How to enable local Cache DNS

hi,

list of root servers :

ftp://rs.internic.net/domain/named.root

mikap
Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

Hi Michal,
Thanks a lot for your reply..
But they are not able help me since my DNS server is Windows.
One question - If I do it through SAM, whether it will get the required files automatically from the available DNS master server?

Arun
Stephan.
Honored Contributor

Re: How to enable local Cache DNS

>>Can you give me the full procedure?

It is the full procedure.

Just open SAM, follow the steps above and enter the IP Adress of your Windows Server.

After that, start the DNS Server under the actions menu.

Which step is not clear enough?
Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

Thanks SVO,
I have done that..
How to confirm local cache is enabled and working. Still the name resolution is happeing through the master DNS only. I have put # in the nameserver in /etc/resolv.conf and tested. no address is getting resolved.

If enable DNS server in resolv.conf its working, but the out put is like,

rasnnmdk:/# nslookup sentorlan
Name Server: localhost
Address: 127.0.0.1

Trying DNS
looking up FILES
rasnnmdk:/#

can you tell me how to confirm whether local DNS cache is Okay?
Stephan.
Honored Contributor

Re: How to enable local Cache DNS

Did you start the DNS Server?
#sam
- "Networking and Communications"
- "DNS (BIND)"
- "DNS Local Name Server"
- "Actions"
- "Start the DNS Name Server"


Did you add the Name Server?
#sam
- "Networking and Communications"
- "DNS (BIND)"
- "DNS Resolver"
- "Actions"
- "Specify Name Server"
Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

Hi SVO,
I did both steps.
But still its resolving name from the DNS server only. When it will start resolving from the local cache?

thanks,
Arun
Patrick Wallek
Honored Contributor

Re: How to enable local Cache DNS

How is your /etc/resolv.conf file set up? You need to modify this file so it will look at your local DNS server first.

The first line of the file should be:

nameserver 127.0.0.1
Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

/etc/resolve.conf is ,
nameserver 127.0.0.1 only
Arun Vijay V C
Frequent Advisor

Re: How to enable local Cache DNS

I meant the first line is local host only..