18.04 internetproblem

Asked by leon antoniadis

I used the 12th Feb. image and installed ubuntu 18.04 on an external hard disk. No problem till an update some days ago when I noticed that I can connect to the router but can not to the internet although connection was OK till then. I downloaded the7th March iso made a startup usb but neither this can connect to internet. Only the router's site can be reached. The Feb.iso usb connects normally
Any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you ping 8.8.8.8 ?

Revision history for this message
leon antoniadis (leon-antoniadis) said :
#2

Yes I can but www.google.com cannot be reached from firefox

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

OK then run:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Then try web access. Is it OK?

Revision history for this message
leon antoniadis (leon-antoniadis) said :
#4

It works.Thanks
However I will have to repeat the command every time it starts.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Run:

echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null

It will now stick

Revision history for this message
leon antoniadis (leon-antoniadis) said :
#6

This solves the restart of firefox. You have to rerun the command upon starting the computer and is OK till it is shutdown

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

The head file is used to create the DNS server file /etc/resolv.conf

It will add the text each boot. Is this not the case?

Revision history for this message
leon antoniadis (leon-antoniadis) said :
#8

It seems this is no the case as the command has to run at every boot

Revision history for this message
Zoltán Süle (zoltan-sule) said :
#9

thanks it fixed for me too

Can you help with this problem?

Provide an answer of your own, or ask leon antoniadis for more information if necessary.

To post a message you must log in.