Re: slow loading browser homepage

2013-09-15 Thread Joseph Areeda

On 09/15/2013 07:15 AM, sascha.fo...@safo.at wrote:
> On Sat, 14 Sep 2013 20:46:55 -0700
> Todd And Margo Chester  wrote:
>> On 09/14/2013 05:34 PM, Tom Rosmond wrote:
>>> T.
>>>
>>> No luck.  Making your suggested changes didn't solve the problem.  I
>>> think it is because for some reason 'resolv.conf' didn't recreate, even
>>> after a reboot.  So without it there was no nameservice and nothing
>>> worked.
>> I forgot to tell yo to restart your netowrking daemon.   Sorry.
>>
>>> I put the original back in place and that restored nameservice,
>>> but at the original slowdown.  I assume this is because of the DNS
>>> mismatch between 'ifcfg-eth0' and 'resolv.conf'?   I tried putting the
>>> Google DNS values in 'resolv.conf' and restarting 'eth0', and now the
>>> file was recreated, but with my own router and ISP nameservice
>>> addresses.  The 'dhclient' deamon seems to insist on that.
>>>
>>> This problem is not unique to me.  I see similar threads in various
>>> Linux forums (Ubuntu, Redhat, etc) complaining about slow nameservice
>>> compared to Windows.  And no clear resolution of the problem.
>> You have probably gone a far as you can go.
> The easiest solution would be to follow Joseph Areeda's advice and
> check the routers DHCP-Server configuration.
>
> As we can see in the dhclient-eth0.leases file the router sends the
> following DNS-Servers and Defaultgateway:
> Primary: 192.168.0.1
> Secondary: 216.177.225.9
> Gateway: 192.168.1.1
>
> Now you should already see whats wrong here. Since this is a home
> router it will probably put itself as the primary DNS-Server in the
> network but as you can see it points to a other IP Adress (192.168.0.1).
>
> Is there actually a DNS-Server running at that IP? (I guess not)
>
> Now to the question why it works in Windows XP and not in Scientific
> Linux. Thats because of the difference of how the resolvers work.
> Windows XP sends a request to all configured DNS-Servers and just takes
> the first response (the secondary DNS answers in that case).
>
> Scientific Linux sends a request to the primary DNS-Server, waits for 5
> seconds and if there is no answer it will move on to the secondary DNS.
> This is why every lookup takes additional 5 seconds in your case.
>
> Regards,
> Sascha
One other option that hasn't been discussed is to use a fixed IP address
and specify everything manually.  It's fairly straight forward with the
Network Manager GUI or the /etc/network configuration files.

The reasons this may be a viable option are:

  * If you want to use the SL system as a server of some sort for other
system in your LAN
  * You're uncomfortable messing with the router's DHCP settings.

Typically these routers will allocate a small block of IP addresses for
DHCP somewhere between 20 and 50.  You must manage the rest of the
address space and be sure to only assign each IP to one device.

I've also found that printers work much better with fixed IP.

Joe



Re: slow loading browser homepage

2013-09-15 Thread sascha.fo...@safo.at
On Sat, 14 Sep 2013 20:46:55 -0700
Todd And Margo Chester  wrote:
> On 09/14/2013 05:34 PM, Tom Rosmond wrote:
> > T.
> >
> > No luck.  Making your suggested changes didn't solve the problem.  I
> > think it is because for some reason 'resolv.conf' didn't recreate, even
> > after a reboot.  So without it there was no nameservice and nothing
> > worked.
> 
> I forgot to tell yo to restart your netowrking daemon.   Sorry.
> 
> > I put the original back in place and that restored nameservice,
> > but at the original slowdown.  I assume this is because of the DNS
> > mismatch between 'ifcfg-eth0' and 'resolv.conf'?   I tried putting the
> > Google DNS values in 'resolv.conf' and restarting 'eth0', and now the
> > file was recreated, but with my own router and ISP nameservice
> > addresses.  The 'dhclient' deamon seems to insist on that.
> >
> > This problem is not unique to me.  I see similar threads in various
> > Linux forums (Ubuntu, Redhat, etc) complaining about slow nameservice
> > compared to Windows.  And no clear resolution of the problem.
> 
> You have probably gone a far as you can go.

The easiest solution would be to follow Joseph Areeda's advice and
check the routers DHCP-Server configuration.

As we can see in the dhclient-eth0.leases file the router sends the
following DNS-Servers and Defaultgateway:
Primary: 192.168.0.1
Secondary: 216.177.225.9
Gateway: 192.168.1.1

Now you should already see whats wrong here. Since this is a home
router it will probably put itself as the primary DNS-Server in the
network but as you can see it points to a other IP Adress (192.168.0.1).

Is there actually a DNS-Server running at that IP? (I guess not)

Now to the question why it works in Windows XP and not in Scientific
Linux. Thats because of the difference of how the resolvers work.
Windows XP sends a request to all configured DNS-Servers and just takes
the first response (the secondary DNS answers in that case).

Scientific Linux sends a request to the primary DNS-Server, waits for 5
seconds and if there is no answer it will move on to the secondary DNS.
This is why every lookup takes additional 5 seconds in your case.

Regards,
Sascha


Re: slow loading browser homepage

2013-09-14 Thread Todd And Margo Chester

On 09/14/2013 05:34 PM, Tom Rosmond wrote:

T.

No luck.  Making your suggested changes didn't solve the problem.  I
think it is because for some reason 'resolv.conf' didn't recreate, even
after a reboot.  So without it there was no nameservice and nothing
worked.


I forgot to tell yo to restart your netowrking daemon.   Sorry.


I put the original back in place and that restored nameservice,
but at the original slowdown.  I assume this is because of the DNS
mismatch between 'ifcfg-eth0' and 'resolv.conf'?   I tried putting the
Google DNS values in 'resolv.conf' and restarting 'eth0', and now the
file was recreated, but with my own router and ISP nameservice
addresses.  The 'dhclient' deamon seems to insist on that.

This problem is not unique to me.  I see similar threads in various
Linux forums (Ubuntu, Redhat, etc) complaining about slow nameservice
compared to Windows.  And no clear resolution of the problem.


You have probably gone a far as you can go.