Help - Search - Members - Calendar
Full Version: Mandrake Internet Connection
Linuxhelp > Support > Technical Support
wiggysmith
help, help, please

totally new to linux etc... have just installed mandrake. i connect to the internet via an adsl router/'modem which has several windows machines and now a linux machine connecting through it...


when i load konqueror and try and view a web page i get the following message:

An error occured while loading http://www.google.co.uk

Could not connect to host www.google.co.uk

However if i go to the command line and type ping google.co.uk i get a reply.... also if i type the actual google ip address into konqueror the page loads..

any help much appreciated...

cheers
Jim
Is this happening with just google or all web-pages?
wiggysmith
thanks for the reply jim,

its any webpage not just google, sorry should have made that clear...

i can ping any host google.co.uk, bbc.co.uk, etc. and get a reply, .i can then type the ip address that is returned by the ping command into konqueror and the page loads, but just typing the host name into konqueror gives me the error message.

thanks

wigs
Jim
Let me propose a work around that may or may not work, either way, your better off. Go get Firefox (www.mozilla.org) and try that. Firefox is a vastly suprior browser anyways. If the problem continues that I am going to have to try to figure out what could be causing this. Try Firefox, you will like it.
wiggysmith
thanks again for your reply,

have installed firefox... unfortunately i still have the same problem...

typing an actual ip address into the firefox address bar returns the page without any problem; however typing the name www.bbc.co.uk, www.google.co.uk, etc. results in an 'Alert' dialog box with the following message:

The connection was refused when attempting to contact www.bbc.co.uk

Any help or advice much appreciated..


Thanks


wigs
present_arms
seems like a dns error did u set up the correct dns ip in drakconnect?

just my 2c
michaelk
Check the /etc/resolv.conf file. Does it contain any nameserver information?

Are you using a static IP address or DHCP?
wiggysmith
i also originally thought it was a dns problem but when i found i could ping host names i presumed it wasnt, or thought perhaps there was a seperate setting for the browser dns server??

i havent used drakconnect... ips are assigned by router

my resolv.conf file is as follows:

nameserver 192.168.1.1

which is the address of my router. which also acts as a dhcp server and assigns the ip addresses to my mandrake & winxp boxes.. the winxp box also has 192.168.1.1 as its dns server and works fine...


thanks for your previous post & patience..
wiggysmith
Heyho, sorted...


i replaced the router ip in the resolv.conf file with the actual dns ip and it works fine... i find it strange though that the ping command could use the router address as the dns server but a browser couldn't.. any ideas why this is???


thanks again for taking the time to reply

wigs
wiggysmith
I'm baffled by this... my resolv.conf file keeps being reset to nameserver 192.168.1.1 and if have to change it back to the dns server address, i work with it ok for about half an hour and then i'm unable to view webpages and find the resolv.conf has reverted back to nameserver 192.168.1.1


any help much appreciated..
DS2K3
The DHCP is telling your system to use 192.168.1.1 as the gateway/DNS. You could set the network settings stically, and it would stop getting overwritten

D
Jim
You could also change the file permision on the file to 444 that will make it completely read only, it may stop the system of over writting it.

Run chmod 444 /etc/resolv.conf

Of course, if you even want to make changes in the future you will have to change it to 544 to be able to edit it. Try that, it may work.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.