[arch-general] /etc/resolv.conf and /etc/resolc.conf.tail

timetrap timetrap at gmail.com
Tue Jul 1 11:32:06 EDT 2008

Here is an experimental patch for /sbin/dhclient-script, this will add the
/etc/resolv.conf.tail concatenation to dhclient.

Would somebody else try this out?

back up your /sbin/dhclient-script before running this, or course.

On Tue, Jul 1, 2008 at 11:05 AM, timetrap <timetrap at gmail.com> wrote:

> Hi, this is my first message to arch-general.
> I have been helping a user on the forums who needs multiple search domains
> in his /etc/resolv.conf file.
> His original question was this:
> "Our DHCP isolates clients to a separate subnet than the servers. As such,
> unless you fully qualify the server name, you can't find the server. A work
> around is to put the IP in the hosts file, but there are just too many
> servers to do that with. Another option is to add the search domain(s) in
> the to the end of the search line in resolv.conf, however that file is
> re-written by dhcpcd, so changes are quickly lost.
> Is there a way to add on search domains to what DHCP hands your system?"
> I have done some research and found that the BSDs have a particularly nice
> solution to this;  /etc/resolv.conf.tail
> Basically, it does this:
> #!/bin/bash
> if [ -f /etc/resolv.conf.tail ]; then
>    cat /etc/resolv.conf.tail >> /etc/resolv.conf
> fi
> I am still new to arch, and I don't know who exactly deals with this
> portion of the distro. Is this something that can be made standard? It seems
> like a very simple fix. Very useful too.
> Here is the forum posting:
> http://bbs.archlinux.org/viewtopic.php?pid=388345#p388345
> --timetrap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://archlinux.org/pipermail/arch-general/attachments/20080701/a6758df3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arch-dhclient-script.patch
Type: application/octet-stream
Size: 428 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/arch-general/attachments/20080701/a6758df3/attachment.obj>

More information about the arch-general mailing list