LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internet (ADSL over network). Often can't resolve pages, sparadic periods of opration (https://www.linuxquestions.org/questions/linux-networking-3/internet-adsl-over-network-often-cant-resolve-pages-sparadic-periods-of-opration-292374/)

nutnut 02-19-2005 03:49 PM

Internet (ADSL over network). Often can't resolve pages, sparadic periods of opration
 
Hi,

I'm a total Linux newbie, installed RedHat 9 today on my spare Machine. In an attemt to connect to the internet, I set up my network (Belkin USB to Ethernet adapter). Now, the I am able to see the other PCs on my home network (windows machines), and send/recieve my emails without a problem.

The difficulty becomes apparent when trying to surf the internet or use IRC (XChat).

When trying to surf the internet, it takes an eternity to 'Resolving google.co.uk' and often fails. Several other websites can't be resolved atall. Interestingly, it seems to work speedily when using the https protocal - as demonstrated when I browsed to RedHat's secure site.

Regarding IRC, it again takes ages to connect to the IRC server, but eventually does (about 1 minute spent resolving).

Now, these problems are isolated to Linux as my other Windows XP PCs are using the internet at perfect speed!

So far, I've disabled the firewall and fiddled with the various network settings - unfortunately not helping.

Being the newb I am, it may very well be something simple, however I'd really appreciate some advice on this :)?

Thanks in advance,
James.

masand 02-19-2005 03:58 PM

hi there

just try this

service named start

then append this ur /etc/resolv.conf

nameserver 127.0.0.1

and see if it helps

basically i am trying to add ur own caching-nameserver

regards

singularity 02-19-2005 03:59 PM

Could you give us a little more info about your network setup. Are you using a router to share your ADSL? Or are you using a Windows box running ICS? Running DHCP or assigning IP's manually? If you use ping to resolve the hostname of a slow site and then plug the IP into your browser, is it any faster ?

nutnut 02-19-2005 04:09 PM

...
 
Hi,

Ok, the internet is running through a router, DHCP is enabled and being used by the other PCs.

I pinged google.co.uk, got the IP address, and stuck it into the browser - instantly loaded! The ping, however, takes about 40 seconds between returns (even though it says 99ms).

Thanks,
James.

masand 02-19-2005 04:26 PM

Re: ...
 
Quote:

Originally posted by nutnut
Hi,

Ok, the internet is running through a router, DHCP is enabled and being used by the other PCs.

I pinged google.co.uk, got the IP address, and stuck it into the browser - instantly loaded! The ping, however, takes about 40 seconds between returns (even though it says 99ms).

Thanks,
James.


did u try as i mentioned above

regards

nutnut 02-19-2005 04:33 PM

Hi,

Sorry... missed that first responce somehow o,o?

Anyways, I've appended that to resolv.conf (didn't help, unless I had to restart something for it to take effect?) however I wasn't sure what you ment by 'service named start'?

Again, fear my newbishness :P!

Thanks,
James.

singularity 02-19-2005 05:26 PM

The most likely thing I can think of that happening is that your router is giving your linux box its IP address for DNS. Try assigning your PC a local IP address, using the routers IP as the gateway, and your ISP's DNS servers, which they should have listed on there site. You should be able to set this up with "netconfig" command udner redhat, or using the "system-config-network" graphical program that you should be able to start with Gnome's run program.

That should speed things up.

singularity 02-19-2005 05:32 PM

ignore this

masand 02-19-2005 11:17 PM

Quote:

Originally posted by nutnut
Hi,

Sorry... missed that first responce somehow o,o?

Anyways, I've appended that to resolv.conf (didn't help, unless I had to restart something for it to take effect?) however I wasn't sure what you ment by 'service named start'?

Again, fear my newbishness :P!

Thanks,
James.

service named start will start the bind service ,that will serve as your DNS server

so if this works for u ,run

chkconfig named on

so that it starts by itself next time also

regards

nutnut 02-20-2005 06:25 AM

...
 
Hi,

singularity: Unfortunately, that didn't work :(. Looking around this website a bit a tried running 'dig www.google.com'. As a result, it came out with 3 A name records but no NS records like in the example on this website?

masand: Typing 'service named start' into a terminal window just gives me the bash command not found error. Again for the sake of my total newbiness, what EXACTLY do I have to do lol?

Sorry for being such a pain... and taking so long to reply (gotta sleep sometime)!

Thanks again,
James.

masand 02-20-2005 06:41 AM

try

/sbin/service named start

regards

nutnut 02-20-2005 07:09 AM

...
 
Hi,

Well, it's recognising the command however this time it's telling me named is an unrecognised service?

Thanks,
James.

nutnut 02-20-2005 07:17 AM

...
 
Hi,

Opps, that would be because I hadn't installed it :P. Installed it... updated resolv.conf (which seems to be removing my line when I restart), started named and.... IT WORKED!!!111one

Hehe, you truely are a genious :P. Just for experiance, why did that work - what's the thought process behind it?

Thanks alot (I'll press the thanks button :P),
James.

masand 02-20-2005 07:56 AM

hi there

good that it worked

now when we try to access a webpage ,we need to resolve the name--->IP right???

now we need a DNS server for that

geneally our ISP provide an IP for a DNS server,if that is wrong we can start our own DNS server and the first DNS server that will resolve the NAME-->IP will be ours .
it will cache the DNS mappings for future use also .so each time it will not need to query the DNS server above it

thts what we have done in ur case

installed named.started the service and ut an entry for that in /etc/resolv.conf

put the

nameserver 127.0.0.1

entry at the top of resolv.conf

also if u want that this service start by itself for next time u start ur system
run

/sbin/chkconfig named on

regards

nutnut 02-20-2005 09:25 AM

Thanks!
 
Hi,

Thanks for explaining that, and for helping me and the newbie inside me :D!

Thanks again,
James.


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