LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2013, 03:20 AM   #1
Grtyop
Member
 
Registered: May 2013
Location: Over the Rainbow..
Distribution: LinuxMint , RedHat
Posts: 31

Rep: Reputation: Disabled
Linux on VMware cannot load any webpage, but ping works.


Code:
ping
www.google.com works.

Code:
service named status
shows that named is running.

Code:
service network status
shows that eth0 is active.

Configured in bridge mode in VMware.

Code:
/etc/resolv.conf
contains
Quote:
# Generated by NetworkManager
search example.com
nameserver 192.168.1.254
Any help is sincerely appreciated =)
 
Old 09-12-2013, 03:23 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Quote:
nameserver 192.168.1.254
192.168.1.254 is your gateway? or is it your DNS Server IP Address?

Last edited by JJJCR; 09-12-2013 at 03:23 AM. Reason: edit
 
Old 09-12-2013, 03:42 AM   #3
Grtyop
Member
 
Registered: May 2013
Location: Over the Rainbow..
Distribution: LinuxMint , RedHat
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
192.168.1.254 is your gateway? or is it your DNS Server IP Address?
192.168.1.254 is my gateway address. How do I find out my DNS server IP address ?

Coincidentally, I have another linux VM with a similar configuration, but it can load webpages properly. Weird..
 
Old 09-12-2013, 04:26 AM   #4
Grtyop
Member
 
Registered: May 2013
Location: Over the Rainbow..
Distribution: LinuxMint , RedHat
Posts: 31

Original Poster
Rep: Reputation: Disabled
Okay I solved it. I set DHCP ( Address only ) and used the public OpenDNS server.

Thanks all ~
 
Old 09-12-2013, 04:28 AM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,148

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
that's the reason why you're not able to load web pages or not able to browse site. because DNS is not set.

the IP address in resolv.conf should be a DNS server IP address.
Quote:
In /etc/resolv.conf try to put these IP Addresses:

nameserver 8.8.8.8

or nameserver 4.2.2.2
those are public DNS server/s just try it out and check whether you can browse the internet.

how to know your DNS server IP Address, if you have a Win OS you can try ipconfig it should show your DNS IP Address but in Linux, I don't know man.
 
  


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
[SOLVED] ping www.google.co.in gives unknown host error ,ping to LAN address works fine aspiring_stellar Linux - Newbie 10 05-24-2011 03:26 PM
firefox unable to load any webpage in Openbox despite ping and links working in CLI admas Arch 2 05-28-2009 02:16 AM
ping works but no webpage in browser sohrab_tapar Debian 1 08-31-2008 01:03 PM
RHEL 4 client in VMware not binding to NIS server. Ping works fine and NIS server wo panini.kompella Linux - Server 1 03-16-2008 11:06 PM
Webpage load time Windows=0,6sec Linux=+30sec !!!! RedDwarf Linux - Networking 0 08-07-2004 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:25 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