Re: [expert] Resolv.conf changing

2003-09-23 Thread Graeme J Hosking
Jack,

  Thank you for this tip (and also to Mark), switching off peerdns
  seems to have done the trick.

  Best regards,
  
  Graeme.

-- 
Graeme J Hosking


pgp0.pgp
Description: PGP signature


[expert] Resolv.conf changing

2003-09-22 Thread Graeme J Hosking
Hi,

  I wonder if someone can tell me how to prevent the contents of my
  /etc/resolv.conf from being re-written every time my NIC is brought
  up? Or at least, allow me to keep entries in that file that I have
  put there manually.

  Basically, the NIC connected to my cable modem has to use DHCP to
  get its address, etc, etc. But I also run a caching DNS server on
  that machine. Every time the interface is brought up it will
  re-write /etc/resolv.conf with settings it gets from my ISP's DHCP
  server, overwriting my entry to point to the local instance of BIND
  for DNS lookups. This is frustrating, as the result is that all the
  machines on my network use my self-hosted DNS server except the
  machine hosting the DNS server. :)

  I've read about adding the -R switch to dhcpcd but I wondered if
  there is another solution? I'm using mdk9.1.

  Many thanks,

  Graeme.

-- 
Graeme J Hosking


pgp0.pgp
Description: PGP signature


Re: [expert] Resolv.conf changing

2003-09-22 Thread Jack Coates
http://www.monkeynoodle.org/comp/reply-to/

[EMAIL PROTECTED] jack]$ cat /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
DHCP_HOSTNAME=chupacabra.monkeynoodle.org
HOSTNAME=chupacabra.monkeynoodle.org
DOMAINNAME=monkeynoodle.org
PEERDNS=yes
DHCP_TIMEOUT=5

peerdns does what you want. That dhcp timeout is a nice one too if you
do a lot of moving around with your laptop :-)

On Mon, 2003-09-22 at 17:17, Graeme J Hosking wrote:
 Hi,
 
   I wonder if someone can tell me how to prevent the contents of my
   /etc/resolv.conf from being re-written every time my NIC is brought
   up? Or at least, allow me to keep entries in that file that I have
   put there manually.
 
   Basically, the NIC connected to my cable modem has to use DHCP to
   get its address, etc, etc. But I also run a caching DNS server on
   that machine. Every time the interface is brought up it will
   re-write /etc/resolv.conf with settings it gets from my ISP's DHCP
   server, overwriting my entry to point to the local instance of BIND
   for DNS lookups. This is frustrating, as the result is that all the
   machines on my network use my self-hosted DNS server except the
   machine hosting the DNS server. :)
 
   I've read about adding the -R switch to dhcpcd but I wondered if
   there is another solution? I'm using mdk9.1.
 
   Many thanks,
 
   Graeme.
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Resolv.conf changing

2003-09-22 Thread Mark Williamson
First up disable a package called tmdns for some reason it's enabled
by default.. don't actually remove the package, as every time you
configure your network with drakconf, drakconf will reinstall the
package..

The commands to disable it..

service tmdns stop
chkconfig --del tndns

Next edit a file /etc/sysconfig/network-scripts/ifcfg-eth0
and place in there
PEERDNS=no

for more help to know what you can place in those ifcfg files.. have a
look at the man file for ifcfg..
man ifcfg

I hope this is a help

Cheers
Mark


On Tue, 2003-09-23 at 10:17, Graeme J Hosking wrote:
 Hi,
 
   I wonder if someone can tell me how to prevent the contents of my
   /etc/resolv.conf from being re-written every time my NIC is brought
   up? Or at least, allow me to keep entries in that file that I have
   put there manually.
 
   Basically, the NIC connected to my cable modem has to use DHCP to
   get its address, etc, etc. But I also run a caching DNS server on
   that machine. Every time the interface is brought up it will
   re-write /etc/resolv.conf with settings it gets from my ISP's DHCP
   server, overwriting my entry to point to the local instance of BIND
   for DNS lookups. This is frustrating, as the result is that all the
   machines on my network use my self-hosted DNS server except the
   machine hosting the DNS server. :)
 
   I've read about adding the -R switch to dhcpcd but I wondered if
   there is another solution? I'm using mdk9.1.
 
   Many thanks,
 
   Graeme.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [expert] resolv.conf

2003-08-21 Thread Frankie
As I understand it, zeroconf is sposed to be to linux what netbeui is to
windoze
or what appletalk is to macs.

A quick google search shows that is the case.
http://www.zeroconf.org/

bascially, when it works, you plug a few mandrake machines into a hub, and
they allocate themselves and allow networking with no config work.

I don't know if i like it, but i see the reason for it.

(having said that, I always setup my network by hand, editing the files to
suit.. so I have no need to use it.)

rgds

Franki
htmlfixit.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jim C
Sent: Thursday, 21 August 2003 4:22 AM
To: [EMAIL PROTECTED]
Subject: Re: [expert] resolv.conf



Just a quick note on this..  I find it better to run the command
service tmdns stop  then chkconfig --del tmdns  as if tmdns was
removed with rpm -e it gets installed and enabled again, when one
configures their network with drakconf..  It's just better to switch it
off.. When it is just switched off, drakconf does not re-enabled it.

One thing I never worked out why did mandrake go for Zeroconf stuff when
no-one knows what it is..I certainly did not make any of it work,
and if anything all it does is make a mess of the resolv.conf file..


I'll second this.  I sure would like to know what it is good for.  It
must be good for something.

Jim C.







Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [expert] resolv.conf

2003-08-21 Thread Olaf Marzocchi
At 12.12 21/08/2003, you wrote:
As I understand it, zeroconf is sposed to be to linux what netbeui is to
windoze
or what appletalk is to macs.
Well, zeroconf is supposed to be what RendezVous is for macs X... they are 
the same thing (and it was born in Apple)...

A quick google search shows that is the case.
http://www.zeroconf.org/
bascially, when it works, you plug a few mandrake machines into a hub, and
they allocate themselves and allow networking with no config work.
I don't know if i like it, but i see the reason for it.
Exactly, i.e. it's useful for instant messaging inside a (not big) network 
and for newbies at home.

Olaf 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-20 Thread Bryan Phinney
On Tuesday 19 August 2003 09:36 pm, James Sparenberg wrote:

 Dirty fix chmod /etc/resolv.conf to 444 (read only) and see what it
 is that complains when it can't write to the file.
Thanks all, I found the solution.  It turns out that the tmdns stuff that 
Mandrake loads for zeroconf is the cause of the rewrite.  I removed it and 
now everything is working fine.  
-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-20 Thread Mark Williamson
On Wed, 2003-08-20 at 14:35, Todd Lyons wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Bryan Phinney wanted us to know:
 
 I am having problems getting SA to do the rbl checks.  It appears that my 
 /etc/resolv.conf file keeps getting built with 127.0.0.1 as the first name 
 server.  Other network utilities appear to be able to bypass this and try 
 
 rpm -e tmdns

Just a quick note on this..  I find it better to run the command
service tmdns stop  then chkconfig --del tmdns  as if tmdns was
removed with rpm -e it gets installed and enabled again, when one
configures their network with drakconf..  It's just better to switch it
off.. When it is just switched off, drakconf does not re-enabled it. 

One thing I never worked out why did mandrake go for Zeroconf stuff when
no-one knows what it is..I certainly did not make any of it work,
and if anything all it does is make a mess of the resolv.conf file..

Cheers
Mark



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-20 Thread James Sparenberg
On Wed, 2003-08-20 at 08:31, Mark Williamson wrote:
 On Wed, 2003-08-20 at 14:35, Todd Lyons wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Bryan Phinney wanted us to know:
  
  I am having problems getting SA to do the rbl checks.  It appears that my 
  /etc/resolv.conf file keeps getting built with 127.0.0.1 as the first name 
  server.  Other network utilities appear to be able to bypass this and try 
  
  rpm -e tmdns
 
 Just a quick note on this..  I find it better to run the command
 service tmdns stop  then chkconfig --del tmdns  as if tmdns was
 removed with rpm -e it gets installed and enabled again, when one
 configures their network with drakconf..  It's just better to switch it
 off.. When it is just switched off, drakconf does not re-enabled it. 
 
 One thing I never worked out why did mandrake go for Zeroconf stuff when
 no-one knows what it is..I certainly did not make any of it work,
 and if anything all it does is make a mess of the resolv.conf file..
 
 Cheers
 Mark

What it is, is a re-implementation of Novel Network. And is supposed to
be (according the the website I was directed to by someone) in very
alpha form.  As for the why.  After watching the list on 9.1, I got the
feeling that they wanted to.  Nothing more.  I was an advocate of making
it optional not mandatory but lost out.  I've put it in my urpmi skip
list in fact.  

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-20 Thread Bryan Phinney
On Wednesday 20 August 2003 11:31 am, Mark Williamson wrote:

 Just a quick note on this..  I find it better to run the command
 service tmdns stop  then chkconfig --del tmdns  as if tmdns was
 removed with rpm -e it gets installed and enabled again, when one
 configures their network with drakconf..  It's just better to switch it
 off.. When it is just switched off, drakconf does not re-enabled it.

 One thing I never worked out why did mandrake go for Zeroconf stuff when
 no-one knows what it is..I certainly did not make any of it work,
 and if anything all it does is make a mess of the resolv.conf file..

 Cheers
 Mark

I did just remove the service.  Funny thing is, I disabled some other device 
from zeroconf because of an earlier problem.  I just never noticed the 
problems from tmdns because all the other network stuff is more forgiving of 
a bad nameserver in the file.
-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-20 Thread James Sparenberg
On Wed, 2003-08-20 at 04:17, Bryan Phinney wrote:
 On Tuesday 19 August 2003 09:36 pm, James Sparenberg wrote:
 
  Dirty fix chmod /etc/resolv.conf to 444 (read only) and see what it
  is that complains when it can't write to the file.
 Thanks all, I found the solution.  It turns out that the tmdns stuff that 
 Mandrake loads for zeroconf is the cause of the rewrite.  I removed it and 
 now everything is working fine.  

Seems we need to add to the Todd's List of post install removals 

rpm -e tmdns 
rpm -e zcip
rpm -e msec 

(note this tongue in cheek observation is based on the number of times
I've seen replies from him that just said rpm -e , not intended to
be anything but humorous.)

james



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-20 Thread Jim C

Just a quick note on this..  I find it better to run the command
service tmdns stop  then chkconfig --del tmdns  as if tmdns was
removed with rpm -e it gets installed and enabled again, when one
configures their network with drakconf..  It's just better to switch it
off.. When it is just switched off, drakconf does not re-enabled it. 

One thing I never worked out why did mandrake go for Zeroconf stuff when
no-one knows what it is..I certainly did not make any of it work,
and if anything all it does is make a mess of the resolv.conf file..
 

I'll second this.  I sure would like to know what it is good for.  It 
must be good for something.

Jim C.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-20 Thread Charles A Edwards
On Wed, 20 Aug 2003 13:21:48 -0700
Jim C [EMAIL PROTECTED] wrote:

 I'll second this.  I sure would like to know what it is good for.  It 
 must be good for something.

And Why was it necessary to make it as the default in All network
set-ups?


Charles

-- 
Be careful how you get yourself involved with persons or situations that
can't bear inspection.
-
Mandrake Linux 9.2 on PurpleDragon
Kernel-2.4.22-0.5.2tmb_mdkenterprise http://www.eslrahc.com
-


pgp0.pgp
Description: PGP signature


Re: [expert] resolv.conf

2003-08-20 Thread Ronald J. Hall
On Wednesday 20 August 2003 02:29 pm, James Sparenberg wrote:

 What it is, is a re-implementation of Novel Network. And is supposed to
 be (according the the website I was directed to by someone) in very
 alpha form.  As for the why.  After watching the list on 9.1, I got the
 feeling that they wanted to.  Nothing more.  I was an advocate of making
 it optional not mandatory but lost out.  I've put it in my urpmi skip
 list in fact.

 James

Hmm, for some reason I was thinking it was supposed to be the beginnings of 
something like what the Mac uses - you know, where you walk into an room with 
a wireless Mac laptop and it auto finds every other Mac in the room and they 
all recognize and configure with each other.

Might be wrong though - just got off a 12 hour shift. grin

-- 
  
  /\  
DarkLord 
  \/  


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[expert] resolv.conf

2003-08-19 Thread Bryan Phinney
I am having problems getting SA to do the rbl checks.  It appears that my 
/etc/resolv.conf file keeps getting built with 127.0.0.1 as the first name 
server.  Other network utilities appear to be able to bypass this and try 
each nameserver before giving up but the Net::DNS perl module is not that 
smart.  It tries the first nameserver, gets a SERVFAIL from localhost and 
then gives up.

I have edited the offending file to move localhost back down but everytime I 
start the network, it rewrites resolv.conf and adds loopback as the first 
nameserver.

Does anyone know where this behavior is coming from and how I can remove it.  
I have checked several other boxes with Mandrake 9.1 and none of them appears 
to even be getting the loopback address in the resolv.conf file but I am not 
sure how it is happening on this one box so I don't know how to repair it.
-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-19 Thread Rolf Pedersen
Bryan Phinney wrote:
I am having problems getting SA to do the rbl checks.  It appears that my 
/etc/resolv.conf file keeps getting built with 127.0.0.1 as the first name 
server.  Other network utilities appear to be able to bypass this and try 
each nameserver before giving up but the Net::DNS perl module is not that 
smart.  It tries the first nameserver, gets a SERVFAIL from localhost and 
then gives up.

I have edited the offending file to move localhost back down but everytime I 
start the network, it rewrites resolv.conf and adds loopback as the first 
nameserver.

Does anyone know where this behavior is coming from and how I can remove it.  
I have checked several other boxes with Mandrake 9.1 and none of them appears 
to even be getting the loopback address in the resolv.conf file but I am not 
sure how it is happening on this one box so I don't know how to repair it.

Look also at /etc/ppp/resolv.conf and /etc/ppp/options.  I don't know if
this relates but, when I installed djbdns, I wrote to these files,
commenting usepeerdns in /etc/ppp/options.  That seemed to stop the
overwriting of resolv.conf for me but not sure if it applies to your
situation.  It seems one used to be able to write resolv.conf and have 
it stick ;p




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-19 Thread James Sparenberg
On Tue, 2003-08-19 at 16:37, Rolf Pedersen wrote:
 Bryan Phinney wrote:
  I am having problems getting SA to do the rbl checks.  It appears that my 
  /etc/resolv.conf file keeps getting built with 127.0.0.1 as the first name 
  server.  Other network utilities appear to be able to bypass this and try 
  each nameserver before giving up but the Net::DNS perl module is not that 
  smart.  It tries the first nameserver, gets a SERVFAIL from localhost and 
  then gives up.
  
  I have edited the offending file to move localhost back down but everytime I 
  start the network, it rewrites resolv.conf and adds loopback as the first 
  nameserver.
  
  Does anyone know where this behavior is coming from and how I can remove it.  
  I have checked several other boxes with Mandrake 9.1 and none of them appears 
  to even be getting the loopback address in the resolv.conf file but I am not 
  sure how it is happening on this one box so I don't know how to repair it.
  
 
 Look also at /etc/ppp/resolv.conf and /etc/ppp/options.  I don't know if
 this relates but, when I installed djbdns, I wrote to these files,
 commenting usepeerdns in /etc/ppp/options.  That seemed to stop the
 overwriting of resolv.conf for me but not sure if it applies to your
 situation.  It seems one used to be able to write resolv.conf and have 
 it stick ;p
 
 

Dirty fix chmod /etc/resolv.conf to 444 (read only) and see what it
is that complains when it can't write to the file.  

James

 
 
 
 __
 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] resolv.conf

2003-08-19 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bryan Phinney wanted us to know:

I am having problems getting SA to do the rbl checks.  It appears that my 
/etc/resolv.conf file keeps getting built with 127.0.0.1 as the first name 
server.  Other network utilities appear to be able to bypass this and try 

rpm -e tmdns

- -- 
Blue skies...   Todd
| Get a bigger hammer!   |  A broken clock is right twice a day.  |
| http://www.mrball.net  |   --Steve Saitman  |
| http://faq.mrball.net  |   ...I don't even know what it is...   |
Linux kernel 2.4.21-0.25mdk   6 users,  load average: 0.05, 0.01, 0.00
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: http://www.mrball.net/todd.asc

iD8DBQE/QvqjIBT1264ScBURAvh9AKDGjbbUUVlMAZ0MMqPwbey8jQ5PfQCfapUI
y6MeNuW10tPcL5G+4Cs7M+U=
=W7BS
-END PGP SIGNATURE-

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com