LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Intermittent "Server Not Found" Problem (https://www.linuxquestions.org/questions/slackware-14/intermittent-server-not-found-problem-585283/)

beartooth91 09-17-2007 09:51 AM

Intermittent "Server Not Found" Problem
 
Hi All,

Long time Linux user here and using Slack for the last 2-3 years. I have a pesky little problem that I can't seem to figure out -

While surfing the internet; Firefox has intermittent problems finding webpages - I get the "Server Not Found" display.
This particular PC is dual boot - Slack or WinXP. I do not have the problem in XP. I do, however, have the problem with both Slack 11 and Slack 12 versions. I'm currently running Slack 11 (huge26.s) with Dropline 2.16.1. It occurs the same regardless of whether or not Dropline is installed. I have my ISP's name servers listed in resolv.conf. Ifconfig eth0 seems to reveal no obvious problems and I am able to ping other IP's even when the problem occurs. It seems to be totally intermittent. Other than DLG; the only other potentially-related change I've made is disabling ipv6 (alias net-pf-10 off in modprobe.conf and blacklist ipv6 in blacklist). The PC is connected to a Linksys WRT54GS Broadband Router. I'm using a static IP address for the PC.

Can anyone point me in the right direction as to troubleshooting this ?
Thanks,

Mark

onebuck 09-17-2007 10:20 AM

Hi,

If it is an ISP DNS problem you could include a third level DNS in your '/etc/resolv.conf' file.

Code:

Verizon has;

4.2.2.1
4.2.2.2
4.2.2.3
4.2.2.4

You could include these or just one to the top of the config file to test an see if the problem is with your ISP DNS.

BTW, show us the '/etc/resolv.conf' file.

beartooth91 09-17-2007 10:36 AM

Thanks for the reply, Onebuck:

/etc/resolv.conf:

nameserver 192.168.1.1 #router
nameserver 69.145.248.50
nameserver 69.145.232.4
nameserver 69.145.248.4
search hosts.bc1.bresnan.net

tronayne 09-17-2007 11:42 AM

You might want to remove the router from the list (I don't think Linksys routers -- at least the ones I have -- are DNS servers).

You might also want to try:
Code:

search com
nameserver 69.145.248.50
<others>

Are you sure that all those domain names are actually name servers?

onebuck 09-17-2007 03:50 PM

Quote:

Originally Posted by tronayne (Post 2894725)
You might want to remove the router from the list (I don't think Linksys routers -- at least the ones I have -- are DNS servers).

You might also want to try:
Code:

search com
nameserver 69.145.248.50
<others>

Are you sure that all those domain names are actually name servers?

Hi,

Most routers do have DNS tables.

tronayne 09-17-2007 04:37 PM

Quote:

Most routers do have DNS tables.
Well, I'll be danged and taken out and hanged... looks like at least my Linksys' do. Sorry about that.

BCarey 09-17-2007 09:43 PM

Never-the-less, I would try the solution of removing the router's ip from resolv.conf. I had a similar problem and that's what worked for me. (If this does work, you'll need to configure so the router doesn't reset your resolv.conf every time you connect).

Brian

onebuck 09-18-2007 07:37 AM

Quote:

Originally Posted by BCarey (Post 2895318)
Never-the-less, I would try the solution of removing the router's ip from resolv.conf. I had a similar problem and that's what worked for me. (If this does work, you'll need to configure so the router doesn't reset your resolv.conf every time you connect).

Brian

Hi,

If the router is used for dhcp then the table would be presented to the request. The '/etc/resolv.conf' would not be updated by the router, the information is passed because of the query for IP from dhcp server. The dhcp allows a host(s) on a TCP/IP network to request and be assigned a IP and to get information about the network they are attached too.

You can usually disable the router DNS table but you would have to present the DNS to the user requesting an IP somehow.

BCarey 09-18-2007 09:05 AM

In my case, the router was configured with two dns servers. When connecting to the router with dhcp, the router passed back it's own address and one of the dns servers (that's what ended up in resolv.conf). This led to intermittent "server not found" errors in firefox. Manually replacing the resolv.conf with the two "correct" dns servers and removing the ip of the router resolved (no pun intended) the problem. I had to create a script that automatically replaced resolv.conf when connected to that particular ssid.

Brian

beartooth91 09-18-2007 07:55 PM

Yesterday (Monday) I added "nameserver 4.2.2.4" to the top of and deleted the router entry from /etc/resolv.conf. The rest of the file is the same. That appears to have solved the problem - I have not had one problem with finding a webpage since. Many thanks to everyone's replies.

Mark

onebuck 09-19-2007 06:01 AM

Quote:

Originally Posted by beartooth91 (Post 2896326)
Yesterday (Monday) I added "nameserver 4.2.2.4" to the top of and deleted the router entry from /etc/resolv.conf. The rest of the file is the same. That appears to have solved the problem - I have not had one problem with finding a webpage since. Many thanks to everyone's replies.

Mark

Hi,

Then it looks like the router or the ISP DNS was the problem. Move the '4.2.2.4' down one tier in the'/etc/resolv.conf' file to see if the problem was the router. The reason to do this is propagation. Your ISP DNS should be faster than the Verizon DNS.

If you can tolerate the delay then leave it as you have it now.

acummings 09-19-2007 10:21 PM

Hi,

I had a few probs (not very often) either inaccess of a www page or extremely slow loading of a www page. This is Slackware 12.0 with its generic-smp kernel.

/etc/resolv.conf had
search localdomain
nameserver 192.168.1.254

That's (nameserver line) my at&t 2wire dsl home gateway (it's a combo dsl modem, router, firewall all in one)

I've a static IP on this Slack box so resolv.conf doesn't get modified again once I've changed it.

My /etc/resolv.conf now has
search localdomain
nameserver 00.00.000.1
nameserver 00.00.000.2
nameserver 192.168.1.254

Above I changed the first two to fictitious but in my real resolv.conf is my ISP's nameservers

That sped things up some for me (now I cut direct to ISP nameservers rather than having 2wire relay the info like when 2wire was the only nameserver).

I'd been watching this thread also somehow the other evening I ended up at a www site of the Linux Network Administrator's Guide on some of its pages under the heading of "resolver"

At there, I discovered that /etc/host.conf has an order in which to query multiple sources so as to resolve (resolve a name into an IP address).

al@AB60R:~$ cat /etc/host.conf
order bind, hosts
multi on

Oop, I thought my hosts file was empty until now. my hosts file only has

127.0.0.1 localhost
192.168.1.10 AB60R.localdomain AB60R

I wonder if that is a problem above in host.conf where I swapped the order of hosts and bind.

Works great on the www. Haven't tried to network with any LAN boxes yet. I suppose it might go to my ISP's name servers looking to resolve for a box on my LAN (wouldn't resolve). Anyways I use IP's, I don't use names on my LAN -- so maybe I'm ok with it as it is? If not, I'll fix the order in host.conf

Comments, suggestions, similar experiences?

--
Alan.

onebuck 09-20-2007 10:42 PM

Hi,

You say that you have other host(s) on your LAN. Why don't you have them in your '/etc/hosts' file?

The order within the '/etc/hosts.conf' file is just that;
Quote:

excerpt 'man hosts.conf'

order This keyword specifies how host lookups are to be performed. It
should be followed by one or more lookup methods, separated by
commas. Valid methods are bind, hosts, and nis.
You should 'man hosts', 'man hosts.conf' and 'man resolv.conf'.


All times are GMT -5. The time now is 06:41 AM.