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: New nameserver in resolv.conf doesn't work - comp.sys.hp.hpux ...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, wh... forwarding syslog to remote machine, getting no hostname - comp ...New nameserver in resolv.conf doesn't work - comp.sys.hp.hpux ... forwarding syslog to remote machine, getting no hostname - comp ... IN6ADDR_ANY_INIT doesn't resolve to ... how to stop dhclient from modifying resolv.conf - comp.os.linux ...... exit-hooks to overload make_resolv_conf function, but it didn't work and ... network interfaces o create a new ... resolv.conf <<EOF # This is my resolv.conf. nameserver ... select() and file descriptor usage troubles - comp.unix.programmer ...New nameserver in resolv.conf doesn't work - comp.sys.hp.hpux ... select() and file descriptor usage troubles - comp.unix.programmer ... Hello All I am an experienced C ... Secondary DNS entry in resolv.conf - comp.unix.solaris... IIRC), but this is safe and fast and doesn't require ... that you want to know whether there is a nameserver ... tries for ... lookup failed: How does /etc/resolv.conf work? Can one get wrt54g router to work as nameserver for local network ...This didn't work I ... so I have a new one ... by NetworkManager nameserver 192.168.15.1 This seems to work, I ... 33.1 ... the resolv.conf file I get, before some nameserver ... domain search list and dhcp problem - comp.sys.mac.system ...It seems that the Mac doesn't act ... nl xxx.net"; } In the resolv.conf file I get, before some nameserver ... queries and it does not work exactly the same way. > Don't ... Why do I have "host name lookup failure"? - comp.mail.sendmail ...... resolv.conf # Generated by NetworkManager nameserver 192.168.15.1 This seems to work ... work. > Yes, it sure does look that way, doesn't it? But resolv.conf ... new ... Need help with adding default routing under 3.2.4.2 - comp.unix ...... compiled version of SSH that will work > under 3.2.4.2? > > I've already had him cut and paste the syntax for /etc/resolv.conf ... IP> 0 Well, yeah but that won't ... rcmd fails to connect; permission denied - comp.unix.sco.misc ...... kwowledge database of sco tells, but still won't work. ... remote machine your DNS, /etc/hosts, or /etc/resolv.conf ... When all files are copied, only the new files ... Disable HTTP Trace on Sun ONe - comp.unix.solaris... It doesn't seems to work. Pls advise. Regards, Weng Lee ... Solaris 10 DHCP: disabling /etc/resolv.conf auto update? - comp ..... 195.238.2.22 nameserver 195.238.2 ... NFS Server access list - comp.sys.sun.admin... the DNS resolver are /etc/nsswitch.conf and /etc/resolv.conf ... Just having a /etc/netgroups file doesn't work ... copy the whole buffer to the clipboard ..... new ... comp.unix.solaris - page 118... help!!! 7 75 (9/11/2003 3:09:45 PM) I have a new ... and I have made the appropriate changes to resolv.conf ... it?tried rm -rf -m, rm -rf "-m", etc, seems doesn't work. nptq -p slowness - comp.protocols.time.ntpMost TCP/IP stacks have a file (/etc/resolv.conf) that contains: "domain <mydefault domain>" "nameserver ... Terje Mathisen) which still seems to work, but it doesn't do ... Have to move a Thunderbird Address Book -- How ? - comp.os.os2 ...... import utility function in Thunderbird doesn't ... If you have a new iPhone and wish to move ... resolv.conf and first nameserver lookup failures - comp.os.linux ... ... New nameserver in resolv.conf doesn't work - comp.sys.hp.hpux ...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, wh... Resolv.conf doesn't work with secondary DNS - LinuxQuestions.orgAre you new to LinuxQuestions.org? Visit ... Nameserver xx.xx.xx.xxx The problem is that the above resolv.conf file doesn’t work anymore. 7/22/2012 4:10:25 PM
|