New nameserver in resolv.conf doesn't work

  • Follow


Hello,

I've added a second nameserver to the /etc/resolv.conf but it seems
that the second entry won't be used.

nslookup can find an IP-Address, which is found by the second
nameserver, only if the second nameserver is the first (in this case
the first one is out of order) or if this one is the only one in the
/etc/resolv.conf.

search DOMAIN
nameserver first_one
nameserver second_one

Any suggestions would be helpfull.

Best regards

J�rg

---
J�rg Schreiber, M.A.
Springer
Content Management/Content Technologies
---
Tiergartenstra�e 17 | 69121 Heidelberg | Germany
tel +49 (0) 6221 / 48 78 - 146
fax +49 (0) 6221 / 48 78 - 304
joerg.schreiber@springer-sbm.com
www.springeronline.com
---
0
Reply joerg 10/29/2004 9:45:11 AM

joerg@viper.pip.springer.de (J�rg Schreiber) writes:

> I've added a second nameserver to the /etc/resolv.conf but it seems
> that the second entry won't be used.

Does the second name server work?

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS
0
Reply Atro 10/29/2004 10:41:36 AM


Hi J�rg

> I've added a second nameserver to the /etc/resolv.conf but it seems
> that the second entry won't be used.
> 
> nslookup can find an IP-Address, which is found by the second
> nameserver, only if the second nameserver is the first (in this case
> the first one is out of order) or if this one is the only one in the
> /etc/resolv.conf.
> 
> search DOMAIN
> nameserver first_one
> nameserver second_one
> 
> Any suggestions would be helpfull.
Is "first_one" not available or is first_one available, but cannot 
resolve the desired hostname?



0
Reply Florian 10/29/2004 11:23:23 AM

> /etc/resolv.conf.
>
> search DOMAIN
> nameserver first_one
> nameserver second_one
>
> Any suggestions would be helpfull.

With your file, second server is used only if first one do not reply within
x seconds (default value can be changed, see man pages: bind,...)
In this case, both name server must have the same contents.

Alain.


0
Reply toto 10/29/2004 7:00:04 PM

Atro Tossavainen <Atro.Tossavainen+news@helsinki.finland.invalid> writes:

> joerg@viper.pip.springer.de (J�rg Schreiber) writes:
> 
> > I've added a second nameserver to the /etc/resolv.conf but it seems
> > that the second entry won't be used.
> 
> Does the second name server work?

Yes, nslookup can find an IP-Address, with the second nameserver, if
the second is the only one in the /etc/resolv.conf.

Best regards

J�rg

---
J�rg Schreiber, M.A.
Springer
Content Management/Content Technologies
---
Tiergartenstra�e 17 | 69121 Heidelberg | Germany
tel +49 (0) 6221 / 48 78 - 146
fax +49 (0) 6221 / 48 78 - 304
joerg.schreiber@springer-sbm.com
www.springeronline.com
---
0
Reply joerg 11/2/2004 12:11:31 PM

Hi Florian,

> > I've added a second nameserver to the /etc/resolv.conf but it
> > seems that the second entry won't be used.  nslookup can find an
> > IP-Address, which is found by the second nameserver, only if the
> > second nameserver is the first (in this case the first one is out
> > of order) or if this one is the only one in the /etc/resolv.conf.
> >
> > search DOMAIN
> > nameserver first_one
> > nameserver second_one
> >
> > Any suggestions would be helpfull.
> 
> Is "first_one" not available or is first_one available, but cannot
> resolve the desired hostname?

he can't resolve the desired hostnames. The whole time both are
available, but only the first one in the resolv.conf is used for
resolving hostnames.

Best regards

J�rg

---
J�rg Schreiber, M.A.
Springer
Content Management/Content Technologies
---
Tiergartenstra�e 17 | 69121 Heidelberg | Germany
tel +49 (0) 6221 / 48 78 - 146
fax +49 (0) 6221 / 48 78 - 304
joerg.schreiber@springer-sbm.com
www.springeronline.com
---
0
Reply joerg 11/2/2004 12:13:12 PM

Hi Alain,

> > /etc/resolv.conf.
> >
> > search DOMAIN
> > nameserver first_one
> > nameserver second_one
> >
> > Any suggestions would be helpfull.
> 
> With your file, second server is used only if first one do not reply
> within x seconds

This would be OK, if the second server is used at all.

> (default value can be changed, see man pages: bind,...)

Sorry, but I can't find something about a default value and how it is
changed. I can't find a man page from bind and in the man page from
resolver(4) there is nothing about a timeout.

> In this case, both name server must have the same contents.

This comment I don't understand :-(

In which case and what do you mean by 'same content'?

Best regards

J�rg

---
J�rg Schreiber, M.A.
Springer
Content Management/Content Technologies
---
Tiergartenstra�e 17 | 69121 Heidelberg | Germany
tel +49 (0) 6221 / 48 78 - 146
fax +49 (0) 6221 / 48 78 - 304
joerg.schreiber@springer-sbm.com
www.springeronline.com
---
0
Reply joerg 11/2/2004 1:28:33 PM

Hi J�rg

>>Is "first_one" not available or is first_one available, but cannot
>>resolve the desired hostname?
> he can't resolve the desired hostnames. The whole time both are
> available, but only the first one in the resolv.conf is used for
> resolving hostnames.
This works as designed; it is the usage of a primary DNS. The secondary 
will be standin if the primary is not available. If the primary is 
available but the hostname cannot be resolved thes does not cause a 
lookup at the secondary.

Florian

0
Reply Florian 11/2/2004 2:04:52 PM

J�rg Schreiber wrote:

> 
> Hello,
> 
> I've added a second nameserver to the /etc/resolv.conf but it seems
> that the second entry won't be used.
> 
> nslookup can find an IP-Address, which is found by the second
> nameserver, only if the second nameserver is the first (in this case
> the first one is out of order) or if this one is the only one in the
> /etc/resolv.conf.
> 
> search DOMAIN
> nameserver first_one
> nameserver second_one
> 
> Any suggestions would be helpfull.
> 
> Best regards
> 
> J�rg
> 
> ---
> J�rg Schreiber, M.A.
> Springer
> Content Management/Content Technologies
> ---
> Tiergartenstra�e 17 | 69121 Heidelberg | Germany
> tel +49 (0) 6221 / 48 78 - 146
> fax +49 (0) 6221 / 48 78 - 304
> joerg.schreiber@springer-sbm.com
> www.springeronline.com
> ---
Ability named and your system first nameserver.
0
Reply cristian 11/2/2004 9:21:13 PM

Hi Florian,

> >>Is "first_one" not available or is first_one available, but cannot
> >>resolve the desired hostname?
> > he can't resolve the desired hostnames. The whole time both are
> > available, but only the first one in the resolv.conf is used for
> > resolving hostnames.
> This works as designed; it is the usage of a primary DNS. The
> secondary will be standin if the primary is not available. If the
> primary is available but the hostname cannot be resolved thes does not
> cause a lookup at the secondary.

Ok, this sounds good, but it isn't what I want :-)

Anyway, thank you for the help.

Is there a possibility do what I want in another way?

Best regards

J�rg

---
J�rg Schreiber, M.A.
Springer
Content Management/Content Technologies
---
Tiergartenstra�e 17 | 69121 Heidelberg | Germany
tel +49 (0) 6221 / 48 78 - 146
fax +49 (0) 6221 / 48 78 - 304
joerg.schreiber@springer-sbm.com
www.springeronline.com
---
0
Reply joerg 11/4/2004 10:32:41 AM

Hello Cristian,

> > I've added a second nameserver to the /etc/resolv.conf but it
> > seems that the second entry won't be used.
> > 
> > nslookup can find an IP-Address, which is found by the second
> > nameserver, only if the second nameserver is the first (in this
> > case the first one is out of order) or if this one is the only one
> > in the /etc/resolv.conf.
> > 
> > search DOMAIN
> > nameserver first_one
> > nameserver second_one
> > 
> > Any suggestions would be helpfull.

> Ability named and your system first nameserver.

If I understand you right, you mean that I should start the daemon
named?

Ok, but how to setup this all?

Best regards

J�rg

---
J�rg Schreiber, M.A.
Springer
Content Management/Content Technologies
---
Tiergartenstra�e 17 | 69121 Heidelberg | Germany
tel +49 (0) 6221 / 48 78 - 146
fax +49 (0) 6221 / 48 78 - 304
joerg.schreiber@springer-sbm.com
www.springeronline.com
---
0
Reply joerg 11/4/2004 12:17:21 PM

On 04 Nov 2004 11:32:41 +0100
joerg@viper.pip.springer.de (J=F6rg Schreiber) wrote:

> > >>Is "first_one" not available or is first_one available, but cannot
> > >>resolve the desired hostname?
> > > he can't resolve the desired hostnames. The whole time both are
> > > available, but only the first one in the resolv.conf is used for
> > > resolving hostnames.
> > This works as designed; it is the usage of a primary DNS. The
> > secondary will be standin if the primary is not available. If the
> > primary is available but the hostname cannot be resolved thes does not
> > cause a lookup at the secondary.
>=20
> Ok, this sounds good, but it isn't what I want :-)

It's just not the way DNS is designed. A DNS server is authoritative
for a particular domain, in which case it's supposed to have all
the information for that domain. A DNS cache queries the various
DNS servers to resolve names and addresses, but it will only query
one of the available servers for a domain; primary and secondary
should have the same information, which is why they are synchronised
with zone transfers or other methods.

The entries in resolv.conf are caches, not servers. The distinction
is blurred in most people's minds because BIND is a combined server
and cache (not that you could not have a server listed there, but
because a server only knows about its domain, it's not particularly
useful.)

> Is there a possibility do what I want in another way?

What you can do is create a subdomain, and delegate that to
the second DNS server. Then the caches can get the information
from the relevant server.=20

For example, if the first server's domain is example.com, then
you can create second.example.com and delegate that to your
second DNS server. The delegation ensures that the resolving
caches will be directed to the appropriate server.

example.com has the following DNS servers:
a.dns.example.com
b.dns.example.com
second.example.dns has the following DNS servers:
a.dns.second.example.com
b.dns.second.example.com

To resolve a query for "myhost.second.example.com" the cache
will first query the root servers for the .com TLD servers,
then those for the example.com DNS servers, which will refer
to [a,b].dns.second.example.com for all addresses in the
second.example.com domain.=20

Take care,

--=20
Stefaan
--=20
"What is stated clearly conceives easily."  -- Inspired sales droid
0
Reply Stefaan 11/4/2004 1:17:37 PM

11 Replies
658 Views

(page loaded in 0.124 seconds)

Similiar Articles:


















7/22/2012 4:10:25 PM


Reply: