Re: why are there 2 resolv.conf files?
From: Clifford Kite (kite_at_see.signature.id)
Date: 07/02/04
- Next message: Clifford Kite: "Re: Kppp problem with philips fisio 825 and bluetooth"
- Previous message: Bit Twister: "Re: Internet Explorer possible to use securely on heterogeneous LAN?"
- In reply to: Marc Schwartz: "Re: why are there 2 resolv.conf files?"
- Next in thread: Rick: "Re: why are there 2 resolv.conf files?"
- Reply: Rick: "Re: why are there 2 resolv.conf files?"
- Reply: Rick: "Re: why are there 2 resolv.conf files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 1 Jul 2004 21:43:09 -0500
Marc Schwartz <MSchwartz@mn.rr.com> wrote:
> There was a thread on the Fedora e-mail list
> (http://www.redhat.com/archives/fedora-list/2004-June/msg07831.html) which
> contained a script called /etc/ppp/ip-up.local, which is referred to in
> 'man pppd' and has seemed to be helpful:
> #!/bin/bash
> # /etc/ppp/ip-up.local
>
> PATH=/sbin:/usr/sbin:/bin:/usr/bin
> export PATH
>
> echo "Created by pppd and $0" > /etc/resolv.conf
> echo "nameserver ${DNS1}" >> /etc/resolv.conf
> echo "nameserver ${DNS2}" >> /etc/resolv.conf
> chmod go+r /etc/resolv.conf
A slight variation on this could also provide for a permanent resolver
options configuration. One way would be to place just the options in
a file, say /etc/resolv.opts, and use the above script with the first
line replaced by "cp -a /etc/resolv.opts /etc/resolv.conf" so that
the options would be retained as well as the DNS nameservers added.
I think the last line could then be omitted (or replaced by the first
line but using ">>" instead of ">").
Since it is a comment, the first line should really begin with a "#",
but perhaps the resolver library just ignores something it doesn't
understand at all.
There are also distributions that don't use /etc/ppp/ip-up.local, and
the body of the script then should be a part of /etc/ppp/ip-up.
-- Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13" PPP-Q&A links, downloads: http://ckite.no-ip.net/
- Next message: Clifford Kite: "Re: Kppp problem with philips fisio 825 and bluetooth"
- Previous message: Bit Twister: "Re: Internet Explorer possible to use securely on heterogeneous LAN?"
- In reply to: Marc Schwartz: "Re: why are there 2 resolv.conf files?"
- Next in thread: Rick: "Re: why are there 2 resolv.conf files?"
- Reply: Rick: "Re: why are there 2 resolv.conf files?"
- Reply: Rick: "Re: why are there 2 resolv.conf files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|