[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/resolv.conf keeps getting overwritten



On Sat, Jan 04, 2003 at 07:54:47PM -0500, alex wrote:
> David Gardner wrote:
> >Derrick 'dman' Hudson <dman@dman.ddts.net> wrote:
> >
> >>A better solution is to edit /etc/dhclient.conf.  Use one of
> >>   append  search foo.example bar.example
> >>   prepend search foo.example bar.example
> >>depending on the effect you want.

> -------------
> For the benefit of someone who doesn't have much experience 
> and occasionally has a problem understanding 
> generalizations, could you elaborate a bit on these?   And, 
> what effect might someone want?

<guess>
	sequence might matter. presumably, "append" will add a
	domain to the bottom of the list, and "prepend" probably
	adds it to the top of the list -- of domains, that is, that
	are searched as specified in /etc/resolv.conf...

	for example (remember, i'm only guessing) if resolv.conf had:

		search this.net
		search somewhere.else.org

	now when you ask for domain "www" it'll look first for
	"www.this.net" and if it can't find it it'll then look for
	"www.somewhere.else.org".

	if that's how you want it, then you could (i'm guessing)
	specify that either of these two ways:

1.	append search this.net somewhere.else.org
	(put them at the bottom of the file)

2.	prepend search somewhere.else.org
	prepend search this.net
	(put them at the top of the file)

	i think.
</guess>

-- 
I use Debian/GNU Linux version 3.0;
Linux server 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i586 unknown
 
DEBIAN NEWBIE TIP #100 from Leonard Stiles <ljs@uk2.net>
:
Looking for a way to CREATE A PAGE OF LINKS to all the
*/index.html that already exist in your /usr/share/doc tree?
	#!/bin/sh
	# as /usr/doc contains lots of symlinks to /usr/share/doc, adding
	# -follow to find args may be useful.
	{ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'
	  echo '"http://www.w3.org/TR/html40/strict.dtd";>';
	  echo '<html><head><title>Documentation Links</title></head><body>';
	  find /usr/doc -name index.html \
	       -printf '<href="file:%p">%P</a><br>\n';
	  echo '</body></html>';
	} > links.html

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: