1834149 Members
2324 Online
110064 Solutions
New Discussion

DNS problem.

 
SOLVED
Go to solution
Worapoj P.
Regular Advisor

DNS problem.

Dear all expertise,

I would like to define 2 DNS servers in order to if server number one can't resolv the name then pass to second DNS server. I known server 203.155.33.1 can't resolv name: www.dtac.co.th but server 202.44.144.33 can!!
Then I defined as below,

===== /etc/resolv.conf ======
domain delta.co.th
seach delta.co.th
nameserver 203.155.33.1
nameserver 202.44.144.33
=============================
the result failed nslookup couldn't try to second server. Maybe I defined entry on /etc/resolv.conf wrong.

Please help me correct this conf file.

Many thks in advance for you helps
Worapoj

For LOVE For Honor For Mankind
7 REPLIES 7
George_Dodds
Honored Contributor
Solution

Re: DNS problem.

I'm only used to linux dns, but to query external domain you usually need the following entry in named.conf

zone "." {
type hint;
file "named.ca";
};

This allows the dns server to accept requests from 'other'domains and resolve them via the route servers in the named.ca file.

Not sure if it's the same in a hpux setup

You also have the entry-
allow-transfer { sec dns ip address; } ;
In named.conf as well.

Worapoj P.
Regular Advisor

Re: DNS problem.

Dear Dodds
I haven't found named.conf on my system!!

Best Regards,
Worapoj
For LOVE For Honor For Mankind
Steven Gillard_2
Honored Contributor

Re: DNS problem.

The secondary nameservers listed in /etc/resolv.conf only get used if the first is unavailable (ie the request times out). If the first name server responds at all (even with "no such domain") then that is the answer that will be reported by gethostbyname and nslookup.

To get this to work you're going to have to change the configuration of the name servers. What you want isn't possible to configure in resolv.conf.

Regards,
Steve
Worapoj P.
Regular Advisor

Re: DNS problem.

Dear Steve

I have no limit to only change on this file resolv.conf . If you have another way , Please suggest.

Thks/Worapoj
For LOVE For Honor For Mankind
Steven Gillard_2
Honored Contributor

Re: DNS problem.

It can only be configured on the DNS servers themselves. Are you the admin for the name servers? Are they running BIND?

If you're not the name server's admin then the only thing you can try is reversing the nameserver lines in your resolv.conf and hope that the other server will forward the requests correctly.

Regards,
Steve
George_Dodds
Honored Contributor

Re: DNS problem.

Take a lokk at the Configuring and Administering the BIND Name Service section.

If you are the admin for these machines then it may help.

Regs

George