LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2008, 03:05 PM   #1
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Rep: Reputation: 15
Clients won't load any page on the first attempt


Hello,

I am using a Debian Etch box to share the internet conection, recently what's been happening is that none of the computers connected to the server can load a page on the first attempt.

The first time you try to go to a webpage using a URL you get a "Page not found" error, like if the domain didn't exist. Then just refreshing, the page it loads like nothing happened. But if you use IP numbres intead of URLs you can browse the web without problems.

However this doesn't happen if you browing the web from de server, so I'm guessing there is a DNS problem of some sort between the server an the clients.


Conection is shared using the following iptables rules, there is no proxy.

$IPT -P INPUT DROP
$IPT -P OUTPUT ACCEPT
$IPT -P FORWARD ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
$IPT -t nat -A POSTROUTING -o $WAN -j MASQUERADE


All the computers within the network, are configured bia DHCP which has the following configuration

subnet 10.11.12.0 netmask 255.255.255.0 {
range 10.11.12.20 10.11.12.250;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option domain-name "xxxxxxx.com";
option domain-name-servers 10.11.12.1;
option broadcast-address 10.11.12.255;
option routers 10.11.12.1;
}


Current contents of resolv.conf

nameserver 208.67.222.222
nameserver 208.67.220.220


I have searched the web and the forums, but i was not quite sure what to search for.

Thanks in advance.

Last edited by landuchi; 07-31-2008 at 03:06 PM.
 
Old 07-31-2008, 05:47 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
The contents you list for resolve.conf are on your Debian server?
I also gather 10.11.12.1 is the IP address of the Debian server?

If so, the line

Code:
option domain-name-servers 10.11.12.1;
tells the clients to use the Debian server for DNS resolution. So you must have a DNS server or DNS cache running on the Debian server. I would guess the problem would be associated with that. If you aren't aware of what might be doing the DNS resolution, look for the process listening on udp/53 (as root):

Code:
netstat -naup | grep ":53 "
One other idea did cross my mind, but I don't understand enough about IPv6 to state it coherently. But I know some people have had DNS problems because the browser was configured to try IPv6 before it tried IPv4 (I think).
 
Old 08-01-2008, 09:32 AM   #3
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
You pointed me on the right direction.

Indeed i have a DNS server (Bind9), but i had thought it would use the same DNS servers i have in /etc/resolv.conf.

Anyway after looking for the configuration files I found a different pair of dns on /etc/bind/named.conf.options and replaced them with the ones in /etc/resolv.conf.

Everything seems to be working now.

Thanks

Last edited by landuchi; 08-01-2008 at 01:32 PM. Reason: Spell check
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hal.dll error when I attempt to load linux... keuler Linux - Newbie 2 06-22-2009 06:55 PM
Web page will not load? DMeerholz Linux - Software 1 09-03-2007 02:19 AM
What does it mean: Attempt to load non-existent block-major-### theillien Linux - Server 0 06-19-2007 12:23 PM
Complicated PHP pages dont load for some internet clients. foxtrot Linux - Software 4 09-14-2005 08:21 PM
Web page does not load CyberEd Linux - Newbie 3 11-05-2003 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration