Operating System - HP-UX
1756773 Members
2514 Online
108852 Solutions
New Discussion юеВ

Re: Use a caching name server on HP-UX 11.0

 
Johan Barelds
Frequent Advisor

Use a caching name server on HP-UX 11.0

Hi all,

I am trying to configure a caching name server.
I started to do it with SAM.
As soon as i change my /etc/resolv.conf to something like this:
----
domain aloha.com
nameserver 127.0.0.1
----
I can resolv any hostnames anymore.
my nsswitch.conf has the following entry:
----
hosts: files dns
----

As soon as i put the internal DNS (with whom i configured my caching DNS) in the /etc/resolv.conf instead of the 127.0.0.1 i can do resolving again.

Anyone any clues?
Thanks in advance!

Grz. Johan
Make my day..:-)
4 REPLIES 4
Karthik S S
Honored Contributor

Re: Use a caching name server on HP-UX 11.0

Instead of giving 127.0.0.1 in the resolv.conf try giving the IP address of the system itself (i.e IP of the cache-DNS server).

Also try doing a "telnet IP_Cache_DNS 53" to see if the service is running.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Geoff Wild
Honored Contributor

Re: Use a caching name server on HP-UX 11.0

Just add the ip of the internal DNS on the next line of resolv.conf



Also, do you have a forwarders statment 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
};

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.
Johan Barelds
Frequent Advisor

Re: Use a caching name server on HP-UX 11.0

If i use "localhost 127.0.0.1" in my resolv.conf i get something like:--#nslookup www.ad.nlUsing /etc/hosts on: untrsp03looking up FILESTrying DNS--If i change 127.0.0.1 to the real ipadress is hangs right away (not showing the FILES lookup anymore).It looks that that's not the solution to me. Telnetting to port 53 works fine though in both situations.Geoff:I don't have named.conf ?!!--#ls -al /etc/named*lr-xr--r-T 1 root sys 15 May 13 2003 /etc/named -> /usr/sbin/namedlr-xr-xr-t 1 root sys 20 May 13 2003 /etc/named-xfer -> /usr/sbin/named-xfer-rw-r--r-- 1 root sys 111 Sep 4 20:40 /etc/named.boot-rw-r--r-- 1 root sys 58 Sep 4 20:04 /etc/named.boot.bak-rw-r--r-- 1 root sys 113 Sep 4 19:36 /etc/named.boot.old/etc/named.data:total 20drwxr-xr-x 2 root sys 1024 Sep 4 20:04 .dr-xr-xr-x 29 bin bin 6144 Dec 8 19:21 ..-rw-r--r-- 1 root sys 485 May 25 2003 db.127.0.0-rw-r--r-- 1 root sys 1414 Sep 4 19:54 db.cache----Do you mean perhaps the files in /etc/named.data??Thanks again for your replies.Grz. Johan
Make my day..:-)
Geoff Wild
Honored Contributor

Re: Use a caching name server on HP-UX 11.0

Barelds - you have a named.boot - that means you are running an old Bind - 4.X - I suggest you upgrade ASAP....

in your named.boot - add a line like:

forwarders 192.168.2.100 192.168.2.101

Of course, put in the ip's of your DNS servers...

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.