LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't Connect To Internet In Linux Mint 14 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-connect-to-internet-in-linux-mint-14-a-4175441165/)

sanjayagayan 12-12-2012 11:42 AM

Can't Connect To Internet In Linux Mint 14
 
I had install Linux mint 14 mate desktop to my laptop few days back.After that i connect to internet using my USB mobile broadband dongle and update the OS.Then i install few software's and drivers.After restart when i try to connect to internet using same usb dongle it connected.Network manager applet shows that it connect to the internet.But when i try to open Firefox it says 'server not found'.I had tried with opera and Google chrome and got the same results.I tried several times after restart the computer and got the same results.
My firewall settings are turnoff.I can connect to internet using same dongle in windows 7.What should i do.How can i correct that error.

kedarp 12-12-2012 11:46 AM

Try to ping www.google.com through the terminal and see if it is connected.

Or try traceroute.

#traceroute www.google.com

markush 12-12-2012 11:49 AM

Hi,

please post the output of
Code:

ifconfig
and
Code:

cat /etc/resolv.conf
Markus

sanjayagayan 12-13-2012 11:17 PM

Output to ping command
 
ping www.google.com ping: unknown host www.google.com

sanjayagayan 12-13-2012 11:19 PM

Output to traceroute
 
traceroute www.google.com
The program 'traceroute' can be found in the following packages:
* inetutils-traceroute
* traceroute
Try: apt-get install <selected package>

sanjayagayan 12-13-2012 11:21 PM

Output to ifconfig
 
eth0 Link encap:Ethernet HWaddr c8:0a:a9:39:30:e1
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3772 errors:0 dropped:0 overruns:0 frame:0
TX packets:3772 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:297544 (297.5 KB) TX bytes:297544 (297.5 KB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.225.53.232 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:326 (326.0 B) TX bytes:601 (601.0 B)

wlan0 Link encap:Ethernet HWaddr 00:26:82:69:ea:9c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sanjayagayan 12-13-2012 11:22 PM

Out put to cat /etc/resolv.conf
 
cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory

malekmustaq 12-13-2012 11:28 PM

Ask your ISP's technician what is the Domain Name Server IP. He will certainly give you that ip number, it is a must under the contract. Then, for example, you are given such number as: 88.888.888.88 and your ISP's domain, say, is called forsale.corporation.com you will simply do this in the terminal:

Quote:

echo "88.888.888.88 forsale.corporation.com" >> /etc/resolv.conf
Then restart the internet protocol or network manager.

Launch firefox and see if it can travel now from west to east :) .

HOpe that helps.

Good luck.

malekmustaq 12-13-2012 11:40 PM

Quote:

cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
You may create the file. The command I gave above will automatically create the file if it did not exist:

Quote:

echo "88.888.888.88 forsale.corporation.com" > /etc/resolv.conf
Use only one (1) of this " > " it creates a fresh file at the /etc directory.

Good luck.

markush 12-14-2012 01:26 AM

You could easily
Code:

echo "nameserver ip-of-the-nameserver" > /etc/resolv.conf
And you can check this ip-adress when you have your Windows-box connected to the internet with the same device, execute on the Windowscomputer in the dosshell (cmd)
Code:

ipconfig /all
there will also the DNS-server(s) be listed.
The syntax for /etc/resolv.conf is
Code:

nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy

and so on.

Markus

sanjayagayan 12-14-2012 11:19 AM

Above posts work on me.Now i can connect to internet in linux mint.Thank you very much for all.


All times are GMT -5. The time now is 07:03 PM.