Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Alexander Kirillov

The local resolver lib will use either /etc/hosts file or dns queries in
the order defined in your /etc/host.conf


You mean /etc/nsswitch.conf?


I probably do. Is /etc/host.conf still of any use?


Actually, I'm not sure.  I've always edited nsswitch.conf to get it to
do what I want, with good results.

I see with strace that when I ping somehost, both nsswitch.conf and
host.conf are opened.  The man pages don't reveal anything about their
relationship, so I guess I'll have to take a look at the glibc sources
tonight.


As close as I can tell from reading the code (which is to say, I am
making an only slightly educated guess), the 'order' keyword in
host.conf is pretty much ignored by current glibc versions.  Host.conf
is only consulted by the libnss_files.so module, and then only for the
'multi' option.  The order in nsswitch.conf is authoritative.

This seems to be confirmed by a few strace ping attempts with
various configurations.


Thanks Rich,
I also was curious and spent some time googling
and reading man pages (without success) but didn't go that far:)
Sasha

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-29 Thread Ben Edwards
On 28/11/05, Ognjen Bezanov [EMAIL PROTECTED] wrote:

 to me.. linux in general has always ran slow if the net connection
 goes out.  It might be constantly trying to access the internet.
 Kinda like the a cell phones battery dies alot faster when it cant
 connect to a tower.  It just keeps trying til it gets something or the
 phone dies.
 

I had a problem of slowness a while ago and it was because my loopback
interface was missing.  Something to check.

Ben
--
Ben Edwards - Exeter  Bristol, UK, England
WARNING:This email contained partisan views - don't ever accuse me of
using the veneer of objectivity
If you have a problem emailing me use
http://www.gurtlush.org.uk/profiles.php?uid=4
(email address this email is sent from may be defunct)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Devon Miller
On 11/28/05, Rob [EMAIL PROTECTED] wrote:
I saw somewhere in portage a daemon that managesconnection/disconnection from the network.I think it was for laptops. But now I don't know what it is called or where it is in portage.I wonder if it would work?
Rob.
That would be ifplugd. It listens for a variety of state changes such
as insertion of a pcmcia/cardbus/usb NIC or presense/absence of carrier
on the ethernet device. When a device becomes available, it runs /etc/init.d/net.device start  and when the device goes away/loses carrier, it runs 
/etc/init.d/net.device stop.

That should address the first of Michael's issues. I've not used
monodevelop, but as I recall from using VS.Net, it wants to talk to the
local webserver. Check what /usr/bin/hostname
returns when your connected and when you're offline. Make sure when you
go offline it isn't still returning something like
foo.cablecompany.net. I have my machine's hostname set in /etc/conf.d/hostname and 
hostname is in my boot run level.

-dcm-


Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Neil Bothwick
On Tue, 29 Nov 2005 09:27:23 -0500, Devon Miller wrote:

  I saw somewhere in portage a daemon that manages
  connection/disconnection from the network.  I think it was for
  laptops. But now I don't know what it is called or where it is in
  portage.

 That would be ifplugd. It listens for a variety of state changes such as
 insertion of a pcmcia/cardbus/usb NIC or presense/absence of carrier on
 the ethernet device. When a device becomes available, it runs
 /etc/init.d/net. device start and when the device goes away/loses
 carrier, it runs /etc/init.d/net.device stop.

I don't think ifplugd will help here. it only checks the link beat on the
ethernet connection. As long as the computer is connected to the cable
modem, it will report the link as up, even if the connection from the
modem to the Internet is down.


-- 
Neil Bothwick

I doubt therefore I might be.


signature.asc
Description: PGP signature


Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-29 Thread Billy Holmes

Michael Sullivan wrote:


can you ping via name to other machines on your lan?

Yes I can.


maybe put some of your local machines into your /etc/hosts file, so it 
won't attempt to do dns lookups on them.


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-29 Thread Michael Sullivan
On Tue, 2005-11-29 at 13:58 -0500, Billy Holmes wrote:
 Michael Sullivan wrote:
 
 can you ping via name to other machines on your lan?
  Yes I can.
 
 maybe put some of your local machines into your /etc/hosts file, so it 
 won't attempt to do dns lookups on them.

Every computer in my network is listed in /etc/hosts, and the /etc/hosts
file is then copied to every computer in the network.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Timur Aydin
Michael Sullivan [EMAIL PROTECTED] writes:

 I don't have a full DNS server for my domain.  Each computer on my
 network has a copy of the same /etc/hosts file.  Is there some way I can
 make it use that for DNS lookups locally?

Having the exact same copy on each system does not sound
correct. There should be a localhost alias in each /etc/hosts and it
should point to the IP address of the relevant machine.

-- 
Timur Aydin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Michael Sullivan
On Tue, 2005-11-29 at 22:07 +0200, Timur Aydin wrote:
 Michael Sullivan [EMAIL PROTECTED] writes:
 
  I don't have a full DNS server for my domain.  Each computer on my
  network has a copy of the same /etc/hosts file.  Is there some way I can
  make it use that for DNS lookups locally?
 
 Having the exact same copy on each system does not sound
 correct. There should be a localhost alias in each /etc/hosts and it
 should point to the IP address of the relevant machine.
 
 -- 
 Timur Aydin

Yeah.  Each one has an entry that says 

127.0.0.1   localhost.localdomain   localhost

and then it has an entry consisting of 

192.168.1.? name.espersunited.com   name

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Manuel McLure

Timur Aydin wrote:

Having the exact same copy on each system does not sound
correct. There should be a localhost alias in each /etc/hosts and it
should point to the IP address of the relevant machine.


No. Nononono. localhost should always point to 127.0.0.1.

--
Manuel A. McLure KE6TAW [EMAIL PROTECTED] http://www.mclure.org
...for in Ulthar, according to an ancient and significant law,
no man may kill a cat.   -- H.P. Lovecraft
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-29 Thread Josh Helmer
On Tuesday 29 November 2005 08:17 pm, Michael Sullivan wrote:
 Yeah.  Each one has an entry that says

 127.0.0.1 localhost.localdomain   localhost

 and then it has an entry consisting of

 192.168.1.?   name.espersunited.com   name


Looks correct to me.

Someone may have already suggested this (if so, sorry), but how about 
your /etc/nsswitch.conf file?  Are you  checking the hosts file before you 
try a dns lookup?

Josh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Ciaran McCreesh
On Mon, 28 Nov 2005 14:54:29 -0600 Michael Sullivan
[EMAIL PROTECTED] wrote:
| Our cable internet service goes out frequently (and probably even more
| frequently now that winter has come to OKlahoma.)  When it goes out,
| pretty much everything on my Gentoo system slows down.  It's gotten to
| where just to get an application (like gnumeric) to open I have to su
| - to root and shut down /etc/init.d/net.eth0 until the Internet comes
| back on.  This morning the internet was out and I'd shut down
| net.eth0 and then tried to run monodevelop and it refused to start
| giving me some message about my PC's hostname not being set correctly
| in /etc/hosts.  I checked it and /etc/hosts was correct.  Must just
| be a glitch with monodevelop.  My question is what is it about Gentoo
| that relies so heavily on connecting to the internet?  My network was
| running just fine
| - just the connection between the cable modem and the internet was
| down, but everything inside my router should have been fine...

Hrm. It's nothing in the base system. I sometimes run my laptop without
network, and I don't have issues. Chances are some app you're running
is trying to do lots of DNS queries... Does 'top' tell you anything
useful?

-- 
Ciaran McCreesh : Gentoo Developer (The one that looks before leaping)
Mail: ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm



signature.asc
Description: PGP signature


Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Danyelle Gragsone
to me.. linux in general has always ran slow if the net connection goes
out. It might be constantly trying to access the internet.
Kinda like the a cell phones battery dies alot faster when it cant
connect to a tower. It just keeps trying til it gets something or
the phone dies.On 11/28/05, Michael Sullivan [EMAIL PROTECTED] wrote:
Our cable internet service goes out frequently (and probably even morefrequently now that winter has come to OKlahoma.)When it goes out,pretty much everything on my Gentoo system slows down.It's gotten towhere just to get an application (like gnumeric) to open I have to su -
to root and shut down /etc/init.d/net.eth0 until the Internet comes backon.This morning the internet was out and I'd shut down net.eth0 andthen tried to run monodevelop and it refused to start giving me some
message about my PC's hostname not being set correctly in /etc/hosts.Ichecked it and /etc/hosts was correct.Must just be a glitch withmonodevelop.My question is what is it about Gentoo that relies so
heavily on connecting to the internet?My network was running just fine- just the connection between the cable modem and the internet was down,but everything inside my router should have been fine...--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Alexander Kirillov

Our cable internet service goes out frequently (and probably even more
frequently now that winter has come to OKlahoma.)  When it goes out,
pretty much everything on my Gentoo system slows down.  It's gotten to
where just to get an application (like gnumeric) to open I have to su -
to root and shut down /etc/init.d/net.eth0 until the Internet comes back
on.  This morning the internet was out and I'd shut down net.eth0 and
then tried to run monodevelop and it refused to start giving me some
message about my PC's hostname not being set correctly in /etc/hosts.  I
checked it and /etc/hosts was correct.  Must just be a glitch with
monodevelop.  My question is what is it about Gentoo that relies so
heavily on connecting to the internet?  My network was running just fine
- just the connection between the cable modem and the internet was down,
but everything inside my router should have been fine...


Do you have nscd running? Try to stop or restart it. It can be a real 
nuisance when internet connection goes down.

It's also a good idea to run dns server locally
if only to troubleshoot name resolution problems.
HTH,
Sasha

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread andy
On Mon, 28 Nov 2005 16:06:44 -0500
Danyelle Gragsone [EMAIL PROTECTED] wrote:

i think there are running files that you dont need without a net-device, try to 
find these processes/services with 
ps -aux and rc-update -s and stop/kill them

greets

 to me.. linux in general has always ran slow if the net connection goes
 out.  It might be constantly trying to access the internet.  Kinda like the
 a cell phones battery dies alot faster when it cant connect to a tower.  It
 just keeps trying til it gets something or the phone dies.
 
 On 11/28/05, Michael Sullivan [EMAIL PROTECTED] wrote:
 
  Our cable internet service goes out frequently (and probably even more
  frequently now that winter has come to OKlahoma.)  When it goes out,
  pretty much everything on my Gentoo system slows down.  It's gotten to
  where just to get an application (like gnumeric) to open I have to su -
  to root and shut down /etc/init.d/net.eth0 until the Internet comes back
  on.  This morning the internet was out and I'd shut down net.eth0 and
  then tried to run monodevelop and it refused to start giving me some
  message about my PC's hostname not being set correctly in /etc/hosts.  I
  checked it and /etc/hosts was correct.  Must just be a glitch with
  monodevelop.  My question is what is it about Gentoo that relies so
  heavily on connecting to the internet?  My network was running just fine
  - just the connection between the cable modem and the internet was down,
  but everything inside my router should have been fine...
 
  --
  gentoo-user@gentoo.org mailing list
 
 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Michael Sullivan
On Tue, 2005-11-29 at 00:21 +0300, Alexander Kirillov wrote:
  Our cable internet service goes out frequently (and probably even more
  frequently now that winter has come to OKlahoma.)  When it goes out,
  pretty much everything on my Gentoo system slows down.  It's gotten to
  where just to get an application (like gnumeric) to open I have to su -
  to root and shut down /etc/init.d/net.eth0 until the Internet comes back
  on.  This morning the internet was out and I'd shut down net.eth0 and
  then tried to run monodevelop and it refused to start giving me some
  message about my PC's hostname not being set correctly in /etc/hosts.  I
  checked it and /etc/hosts was correct.  Must just be a glitch with
  monodevelop.  My question is what is it about Gentoo that relies so
  heavily on connecting to the internet?  My network was running just fine
  - just the connection between the cable modem and the internet was down,
  but everything inside my router should have been fine...
 
 Do you have nscd running? Try to stop or restart it. It can be a real 
 nuisance when internet connection goes down.
 It's also a good idea to run dns server locally
 if only to troubleshoot name resolution problems.
 HTH,
 Sasha
 

I don't have a full DNS server for my domain.  Each computer on my
network has a copy of the same /etc/hosts file.  Is there some way I can
make it use that for DNS lookups locally?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Rob
Michael Sullivan wrote:
 Our cable internet service goes out frequently (and probably even more
 frequently now that winter has come to OKlahoma.)  When it goes out,
 pretty much everything on my Gentoo system slows down.  It's gotten to
 where just to get an application (like gnumeric) to open I have to su -
 to root and shut down /etc/init.d/net.eth0 until the Internet comes back
 on.  This morning the internet was out and I'd shut down net.eth0 and
 then tried to run monodevelop and it refused to start giving me some
 message about my PC's hostname not being set correctly in /etc/hosts.  I
 checked it and /etc/hosts was correct.  Must just be a glitch with
 monodevelop.  My question is what is it about Gentoo that relies so
 heavily on connecting to the internet?  My network was running just fine
 - just the connection between the cable modem and the internet was down,
 but everything inside my router should have been fine...
 
I saw somewhere in portage a daemon that manages
connection/disconnection from the network.  I think it was for laptops.
 But now I don't know what it is called or where it is in portage.

I wonder if it would work?

Rob.

-- 
--
Rob Lytle Home Page
A Seti search for intelligent life in Central Pa.
http://home.comcast.net/~europa100
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Sullivan wrote:
 I don't have a full DNS server for my domain.  Each computer on my
 network has a copy of the same /etc/hosts file.  Is there some way I can
 make it use that for DNS lookups locally?

Edit /etc/host.conf - it's well commented.

dnsmasq reads and provides dns resolution based on /etc/hosts, too. 
additionlly, check  your
/etc/resolv.conf. a nameserver 127.0.0.1 line should be present, if you want 
to avoid contacting
the internet for dns lookups, if so your system configured.

- --
Arturo Buanzo Busleiman - www.buanzo.com.ar
Consultor en Seguridad Informatica / Dominio Digital TV - Da FOSS man!
KTP Consultores - info AT ktpconsultores.com.ar

Romper un sistema de seguridad los acerca tanto a ser hackers como el
encender autos puenteando los convierte en ingenieros automotrices.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDi3lGAlpOsGhXcE0RAlYoAJ9wn39wS3X93f1mjauNYgSQH6R0VACeJrA3
cUSVn7nMs5xa+Fuodaf/+ek=
=ASRh
-END PGP SIGNATURE-
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Alexander Kirillov

Our cable internet service goes out frequently (and probably even more
frequently now that winter has come to OKlahoma.)  When it goes out,
pretty much everything on my Gentoo system slows down.  It's gotten to
where just to get an application (like gnumeric) to open I have to su -
to root and shut down /etc/init.d/net.eth0 until the Internet comes back
on.  This morning the internet was out and I'd shut down net.eth0 and
then tried to run monodevelop and it refused to start giving me some
message about my PC's hostname not being set correctly in /etc/hosts.  I
checked it and /etc/hosts was correct.  Must just be a glitch with
monodevelop.  My question is what is it about Gentoo that relies so
heavily on connecting to the internet?  My network was running just fine
- just the connection between the cable modem and the internet was down,
but everything inside my router should have been fine...


Do you have nscd running? Try to stop or restart it. It can be a real 
nuisance when internet connection goes down.

It's also a good idea to run dns server locally
if only to troubleshoot name resolution problems.


I don't have a full DNS server for my domain.  Each computer on my
network has a copy of the same /etc/hosts file.  Is there some way I can
make it use that for DNS lookups locally?


The local resolver lib will use either /etc/hosts file or dns queries in 
the order defined in your /etc/host.conf

Anyway I think it makes sense to go through the chores of setting up
local dns server ones to save some time later down the road.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Dale
Danyelle Gragsone wrote:

 to me.. linux in general has always ran slow if the net connection
 goes out.  It might be constantly trying to access the internet. 
 Kinda like the a cell phones battery dies alot faster when it cant
 connect to a tower.  It just keeps trying til it gets something or the
 phone dies.

That's funny.  I'm on dial-up and I see no difference at all.  I even
run ntp which sets my clock and keeps it on track for me and there is no
difference when I am connected and when I am not.

Yes, I have three network cards installed and running all the time.  I
do have a local LAN here with three other rigs connected.

This is not making sense.  If what you guys are saying is correct,
people on dial-up can't use Linux.  That's not right.

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Alexander Kirillov

Our cable internet service goes out frequently (and probably even more
frequently now that winter has come to OKlahoma.)  When it goes out,
pretty much everything on my Gentoo system slows down.  It's gotten to
where just to get an application (like gnumeric) to open I have to su -
to root and shut down /etc/init.d/net.eth0 until the Internet comes back
on.  This morning the internet was out and I'd shut down net.eth0 and
then tried to run monodevelop and it refused to start giving me some
message about my PC's hostname not being set correctly in /etc/hosts.  I
checked it and /etc/hosts was correct.  Must just be a glitch with
monodevelop.  My question is what is it about Gentoo that relies so
heavily on connecting to the internet?  My network was running just fine
- just the connection between the cable modem and the internet was down,
but everything inside my router should have been fine...


Do you have nscd running? Try to stop or restart it. It can be a real 
nuisance when internet connection goes down.

It's also a good idea to run dns server locally
if only to troubleshoot name resolution problems.
HTH,
Sasha



I don't have a full DNS server for my domain.  Each computer on my
network has a copy of the same /etc/hosts file.  Is there some way I can
make it use that for DNS lookups locally?



http://gentoo-wiki.com/HOWTO_setup_a_home-server
may be of use though I've never tried dnsmasq myself.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-28 Thread Ognjen Bezanov

Dale wrote:


Danyelle Gragsone wrote:

 


to me.. linux in general has always ran slow if the net connection
goes out.  It might be constantly trying to access the internet. 
Kinda like the a cell phones battery dies alot faster when it cant

connect to a tower.  It just keeps trying til it gets something or the
phone dies.
   



That's funny.  I'm on dial-up and I see no difference at all.  I even
run ntp which sets my clock and keeps it on track for me and there is no
difference when I am connected and when I am not.

Yes, I have three network cards installed and running all the time.  I
do have a local LAN here with three other rigs connected.

This is not making sense.  If what you guys are saying is correct,
people on dial-up can't use Linux.  That's not right.

Dale
:-)

 

I have a gentoo system (Actually I have four of them) and they dont 
experience a slowdown when my internet connection goes down (which it 
invariably does because my ISP reboots its servers every 28 days as a 
policy, thereby disconnecting me ). Chances are its a particular program 
thats trying to connect to the net and failing, thereby using cycles in 
new attempts.


While we are at it, does there exist a program that can monitor my 
internet connection and run a script if the net is down (like a restart 
script)? I dont want to have to come home and ssh in to restart 
everytime my ISP reboots its M$ Servers.


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Alexander Kirillov

The local resolver lib will use either /etc/hosts file or dns queries in
the order defined in your /etc/host.conf


You mean /etc/nsswitch.conf?


I probably do. Is /etc/host.conf still of any use?

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Michael Sullivan
On Mon, 2005-11-28 at 18:40 -0300, Arturo 'Buanzo' Busleiman wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Michael Sullivan wrote:
  I don't have a full DNS server for my domain.  Each computer on my
  network has a copy of the same /etc/hosts file.  Is there some way I can
  make it use that for DNS lookups locally?
 
 Edit /etc/host.conf - it's well commented.
 
 dnsmasq reads and provides dns resolution based on /etc/hosts, too. 
 additionlly, check  your
 /etc/resolv.conf. a nameserver 127.0.0.1 line should be present, if you 
 want to avoid contacting
 the internet for dns lookups, if so your system configured.
 
 - --
 Arturo Buanzo Busleiman - www.buanzo.com.ar
 Consultor en Seguridad Informatica / Dominio Digital TV - Da FOSS man!
 KTP Consultores - info AT ktpconsultores.com.ar
 
 Romper un sistema de seguridad los acerca tanto a ser hackers como el
 encender autos puenteando los convierte en ingenieros automotrices.

The loopback address wasn't in my /etc/resolv.conf, so I added it and
restarted net.eth0

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-28 Thread Nick Rout

On Mon, 28 Nov 2005 22:43:01 +
Ognjen Bezanov wrote:

 
 I have a gentoo system (Actually I have four of them) and they dont 
 experience a slowdown when my internet connection goes down (which it 
 invariably does because my ISP reboots its servers every 28 days as a 
 policy, thereby disconnecting me ). Chances are its a particular program 
 thats trying to connect to the net and failing, thereby using cycles in 
 new attempts.
 
 While we are at it, does there exist a program that can monitor my 
 internet connection and run a script if the net is down (like a restart 
 script)? I dont want to have to come home and ssh in to restart 
 everytime my ISP reboots its M$ Servers.

many programs do a dns lookup on connection, to see who is trying to
connect. It should be managed on your lan with /etc/hosts if you have it
sorted properly.

can you ping via name to other machines on your lan?

 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-28 Thread Michael Sullivan
On Tue, 2005-11-29 at 12:24 +1300, Nick Rout wrote:
 On Mon, 28 Nov 2005 22:43:01 +
 Ognjen Bezanov wrote:
 
  
  I have a gentoo system (Actually I have four of them) and they dont 
  experience a slowdown when my internet connection goes down (which it 
  invariably does because my ISP reboots its servers every 28 days as a 
  policy, thereby disconnecting me ). Chances are its a particular program 
  thats trying to connect to the net and failing, thereby using cycles in 
  new attempts.
  
  While we are at it, does there exist a program that can monitor my 
  internet connection and run a script if the net is down (like a restart 
  script)? I dont want to have to come home and ssh in to restart 
  everytime my ISP reboots its M$ Servers.
 
 many programs do a dns lookup on connection, to see who is trying to
 connect. It should be managed on your lan with /etc/hosts if you have it
 sorted properly.
 
 can you ping via name to other machines on your lan?

Yes I can.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-28 Thread Dale
Ognjen Bezanov wrote:

  I dont want to have to come home and ssh in to restart everytime my
 ISP reboots its M$ Servers.

It's funny that you say that.  One of the first things I asked my ISP
when I was looking for one, what OS do you use?  If they didn't use
*nix, I was going to keep looking.  It is very rare that I have any
trouble either.

Another thing I like about mine is the service.  When I call them, I get
a live human being that answers the phone.  They don't have a automated
thingy, just people.  I have talked to the owner once and have actually
had the guys that run the network to call me for help.  I am the only
one that runs Linux with the logs turned on and it gives them a lot of
info if they are having any connection problems.  I guess windoze
doesn't.  They call me and get me to connect and see what happens.  If I
can't connect, I call them back and read them the log files and the boo
boo message.  They had the login/password file get borked once.  They
said it was there but it was messed up.  They took the one from their
back-ups and up it went.  We were surfing again.  :)

Ever consider switching ISPs or are you stuck with the one you have? 
I'll switch for DSL but that is about it.  Dial-up sucks, 26K is all I
get here.

Dale
:) :)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Richard Fish
On 11/28/05, Alexander Kirillov [EMAIL PROTECTED] wrote:
 The local resolver lib will use either /etc/hosts file or dns queries in
 the order defined in your /etc/host.conf
 
  You mean /etc/nsswitch.conf?

 I probably do. Is /etc/host.conf still of any use?

Actually, I'm not sure.  I've always edited nsswitch.conf to get it to
do what I want, with good results.

I see with strace that when I ping somehost, both nsswitch.conf and
host.conf are opened.  The man pages don't reveal anything about their
relationship, so I guess I'll have to take a look at the glibc sources
tonight.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-28 Thread Michael Sullivan
On Mon, 2005-11-28 at 18:11 -0600, Dale wrote:
 Ognjen Bezanov wrote:
 
   I dont want to have to come home and ssh in to restart everytime my
  ISP reboots its M$ Servers.
 
 It's funny that you say that.  One of the first things I asked my ISP
 when I was looking for one, what OS do you use?  If they didn't use
 *nix, I was going to keep looking.  It is very rare that I have any
 trouble either.
 
 Another thing I like about mine is the service.  When I call them, I get
 a live human being that answers the phone.  They don't have a automated
 thingy, just people.  I have talked to the owner once and have actually
 had the guys that run the network to call me for help.  I am the only
 one that runs Linux with the logs turned on and it gives them a lot of
 info if they are having any connection problems.  I guess windoze
 doesn't.  They call me and get me to connect and see what happens.  If I
 can't connect, I call them back and read them the log files and the boo
 boo message.  They had the login/password file get borked once.  They
 said it was there but it was messed up.  They took the one from their
 back-ups and up it went.  We were surfing again.  :)
 
 Ever consider switching ISPs or are you stuck with the one you have? 
 I'll switch for DSL but that is about it.  Dial-up sucks, 26K is all I
 get here.
 
 Dale
 :) :)
 
 -- 
 To err is human, I'm most certainly human.

My wife says that we can try SBC DSL after the new year starts (when we
can afford it.)  I just hope that I can get everything converted over to
PPP

 


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-28 Thread John Jolet
On Monday 28 November 2005 17:58, Michael Sullivan wrote:
 On Tue, 2005-11-29 at 12:24 +1300, Nick Rout wrote:
  On Mon, 28 Nov 2005 22:43:01 +
 
  Ognjen Bezanov wrote:
   I have a gentoo system (Actually I have four of them) and they dont
   experience a slowdown when my internet connection goes down (which it
   invariably does because my ISP reboots its servers every 28 days as a
   policy, thereby disconnecting me ). Chances are its a particular
   program thats trying to connect to the net and failing, thereby using
   cycles in new attempts.
  
   While we are at it, does there exist a program that can monitor my
   internet connection and run a script if the net is down (like a restart
   script)? I dont want to have to come home and ssh in to restart
   everytime my ISP reboots its M$ Servers.

ifplugd works, at least at the ethernet level.
 
  many programs do a dns lookup on connection, to see who is trying to
  connect. It should be managed on your lan with /etc/hosts if you have it
  sorted properly.
 
  can you ping via name to other machines on your lan?

 Yes I can.

-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? + question

2005-11-28 Thread Dale
Michael Sullivan wrote:

On Mon, 2005-11-28 at 18:11 -0600, Dale wrote:
  


My wife says that we can try SBC DSL after the new year starts (when we
can afford it.)  I just hope that I can get everything converted over to
PPP
  

I !think! they use windoze too.  Aren't they the same as Bell South?  I know 
Bell South uses windoze because it is a nightmare paying my bill online.  Since 
I am on a slow dial-up their servers keep timing out on me.  I notice windoze 
does this a lot more *nix servers do.

Later

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?

2005-11-28 Thread Richard Fish
On 11/28/05, Richard Fish [EMAIL PROTECTED] wrote:
 On 11/28/05, Alexander Kirillov [EMAIL PROTECTED] wrote:
  The local resolver lib will use either /etc/hosts file or dns queries in
  the order defined in your /etc/host.conf
  
   You mean /etc/nsswitch.conf?
 
  I probably do. Is /etc/host.conf still of any use?

 Actually, I'm not sure.  I've always edited nsswitch.conf to get it to
 do what I want, with good results.

 I see with strace that when I ping somehost, both nsswitch.conf and
 host.conf are opened.  The man pages don't reveal anything about their
 relationship, so I guess I'll have to take a look at the glibc sources
 tonight.

As close as I can tell from reading the code (which is to say, I am
making an only slightly educated guess), the 'order' keyword in
host.conf is pretty much ignored by current glibc versions.  Host.conf
is only consulted by the libnss_files.so module, and then only for the
'multi' option.  The order in nsswitch.conf is authoritative.

This seems to be confirmed by a few strace ping attempts with
various configurations.

-Richard

-- 
gentoo-user@gentoo.org mailing list