* DNS caching nameserver problem
@ 2005-05-30 17:51 gerardo juarez-mondragon
2005-05-30 18:24 ` Darío Mariani
0 siblings, 1 reply; 3+ messages in thread
From: gerardo juarez-mondragon @ 2005-05-30 17:51 UTC (permalink / raw)
To: linux-admin
I have a DNS caching server that works ok until
it is rebooted. When this happens it restarts
normally, except the /etc/resolv.conf file is
altered and the server stops serving names. (The
line 'nameserver 127.0.0.1' is missing and other
namservers appear instead).
The server obtains an address through DHCP and my
theory is that the DHCP server is providing it
with DNS servers as well, which it substitutes
when it probably shouldn't.
I have tried a horrible patch in rc.local,
stopping named, overwriting resolv.conf with a
correct copy and restarting, but
editing the file and restarting 'named' does not
seem to work 100% of the time, requiring
sometimes one or two restarts of the service to
make it serve names for the internal hosts.
What do you think is the problem?
Is there a workaround?
Thank you for your comments.
Gerardo
Searching for the best free email? Try MetaCrawler Mail, from the #1 metasearch service on the Web, http://www.metacrawler.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DNS caching nameserver problem
2005-05-30 17:51 DNS caching nameserver problem gerardo juarez-mondragon
@ 2005-05-30 18:24 ` Darío Mariani
2005-05-31 2:05 ` Andrew Schulman
0 siblings, 1 reply; 3+ messages in thread
From: Darío Mariani @ 2005-05-30 18:24 UTC (permalink / raw)
To: gerardo juarez-mondragon; +Cc: linux-admin
Yes, the problem is that your DHCP client is overwriting the
resolv.conf file. How to avoid this, as far as I know, is
distribuition specific. What distribution do you have?
Darío
On 5/30/05, gerardo juarez-mondragon <gjuarezmondragon@metacrawler.com> wrote:
> I have a DNS caching server that works ok until
> it is rebooted. When this happens it restarts
> normally, except the /etc/resolv.conf file is
> altered and the server stops serving names. (The
> line 'nameserver 127.0.0.1' is missing and other
> namservers appear instead).
>
> The server obtains an address through DHCP and my
> theory is that the DHCP server is providing it
> with DNS servers as well, which it substitutes
> when it probably shouldn't.
>
> I have tried a horrible patch in rc.local,
> stopping named, overwriting resolv.conf with a
> correct copy and restarting, but
> editing the file and restarting 'named' does not
> seem to work 100% of the time, requiring
> sometimes one or two restarts of the service to
> make it serve names for the internal hosts.
>
> What do you think is the problem?
> Is there a workaround?
>
> Thank you for your comments.
> Gerardo
>
>
>
> Searching for the best free email? Try MetaCrawler Mail, from the #1 metasearch service on the Web, http://www.metacrawler.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DNS caching nameserver problem
2005-05-30 18:24 ` Darío Mariani
@ 2005-05-31 2:05 ` Andrew Schulman
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Schulman @ 2005-05-31 2:05 UTC (permalink / raw)
To: linux-admin-u79uwXL29TY76Z2rM5mHXA
>> I have a DNS caching server that works ok until
>> it is rebooted. When this happens it restarts
>> normally, except the /etc/resolv.conf file is
>> altered and the server stops serving names. (The
>> line 'nameserver 127.0.0.1' is missing and other
>> namservers appear instead).
>>
>> The server obtains an address through DHCP and my
>> theory is that the DHCP server is providing it
>> with DNS servers as well, which it substitutes
>> when it probably shouldn't.
>>
>> I have tried a horrible patch in rc.local,
>> stopping named, overwriting resolv.conf with a
>> correct copy and restarting, but
>> editing the file and restarting 'named' does not
>> seem to work 100% of the time, requiring
>> sometimes one or two restarts of the service to
>> make it serve names for the internal hosts.
>>
>> What do you think is the problem?
>> Is there a workaround?
>
> Yes, the problem is that your DHCP client is overwriting the
> resolv.conf file. How to avoid this, as far as I know, is
> distribuition specific. What distribution do you have?
pump, for example, includes an option --no-dns that tells it not to
overwrite /etc/resolv.conf. I use this along with my cacheing DNS server.
I put 'nameserver 127.0.0.1' into /etc/resolv.conf, then I have pump run a
postprocessing script that extracts the DNS server information and writes
it to /etc/dnsmasq.conf, where dnsmasq (my cacheing name server) looks to
find the upstream DNS servers.
Good luck,
Andrew.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-31 2:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-30 17:51 DNS caching nameserver problem gerardo juarez-mondragon
2005-05-30 18:24 ` Darío Mariani
2005-05-31 2:05 ` Andrew Schulman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).