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. |
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 |
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 ?
|
...
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. |
Re: ...
Quote:
did u try as i mentioned above regards |
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. |
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. |
ignore this
|
Quote:
so if this works for u ,run chkconfig named on so that it starts by itself next time also regards |
...
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. |
try
/sbin/service named start regards |
...
Hi,
Well, it's recognising the command however this time it's telling me named is an unrecognised service? Thanks, James. |
...
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. |
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 |
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. |