Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

(Solved) "DNS Lookup Failed"

Started by frogprince, April 15, 2014, 01:46:03 AM

Previous topic - Next topic

frogprince

#15
He's back..I reinstalled Sparky 3 on a desktop machine, ran apt-get dist-upgrade, and now have lost my internet connection. It's now a wired connection, but running dhclient as above restores access. Have you had any further luck with this one? Thanks.

MoroS

#16
Should have seen this one coming. :P I'll look into it in the evening (don't know what time zone you're in, but here it's in 6-8 hours). If I won't find the problem, then at the very least we'll solve yours. :) Which version are you using? The one with LXDE?
There's no such thing as "impossible". :)

frogprince

#17
MoroS: Yeah, I thought it might be about the wireless Intel drivers in the X1 laptop, so I moved Sparky to a P4 machine I have with wired access, an nVidia 6200 video card and an Intel mobo. But as soon as I did the big update, I lost internet access in exactly the same way. I have a number of different machines, so I'm not shut down and it's not critical for me. Unfortunately, you may see this one from other users.. :(



I'm in the US, Eastern Time Zone, and yes, it's the latest and greatest 32-bit LXDE version. Debian bug? If so, I can post it there.. :P

pavroo

#18
Your problem doesn't let me sleep well :)

If you keep open connection, install package 'resolvconf'.

If not, download it from the Debian repo using other computer:

packages.debian.org/jessie/all/resolvconf/download

and install it manually:

Code:

sudo dpkg -i resolvconf_1.74_all.deb


When you install it, run:

Code:

ifdown eth0
ifup eth0


and

Code:

ifdown eth1
ifup eth1


Nothing is easy as it looks. Danielle Steel

MoroS

#19
Pavroo: it's not a question of resolvconf, but NetworkManager running a DHCP client (dhclient for instance, which also handles resolvconf). Maybe the update scrambles something in the NetworkManager or service configurations. That I have yet to test.
There's no such thing as "impossible". :)

frogprince

#20
Pavroo: Please sleep. We'll figure this out in due time, and I'm not shut down!



I installed resolvconf_1.74_all.deb as above, and then ran:



Code:

root@zapper:/home/username# ifdown eth0
ifdown: eth0 not configured




So, I tried:

Code:

root@zapper:/home/username#nano /etc/network/interfaces

auto lo
iface lo inet loopback




I did a quick duckduckgo search, and modified as follows:



Code:

auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp




Saved it, logged out and back in, and checked:



Code:

root@zapper:/home/username# ifdown eth0
ifdown: eth0 not configured


. :



I'm not afraid to go mucking around in config files, but I must confess that I really don't know what I'm doing here.

The good news is, there's no data at risk on this machine, so there's no risk in trying things.



Please let me know what else I can do, and thanks.

pavroo

#21
MoroS: Ok, just test it.

Frogprince: wait for MoroS tests. Anyway I think  you have connected eth1 not eth0.
Nothing is easy as it looks. Danielle Steel

frogprince

#22
Pavroo: I checked before I tried ifdown, menu/preferences/Network Connections, both "Wired connection 1" and "Auto Ethernet" show:



Code:

MAC Address   00:07:E9:D5:4B:12 (eth0)




What apparently I missed was rebooting after installing resolvconf. After sending my last message, I shut the machine down to run a couple of errands. After coming back and rebooting, I got:



Code:

username@zapper:~$ su
Password:
root@zapper:/home/username# ifdown eth1
ifdown: interface eth1 not configured
root@zapper:/home/username ifdown eth0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:07:e9:d5:4b:12
Sending on   LPF/eth0/00:07:e9:d5:4b:12
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
root@zapper:/home/username# ifup eth0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:07:e9:d5:4b:12
Sending on   LPF/eth0/00:07:e9:d5:4b:12
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.0.1
DHCPACK from 192.168.0.1
bound to 192.168.0.105 -- renewal in 4783 seconds.
root@zapper:/home/username#




So I opened Iceweasel, and it immediately connected to www.google.com as usual. To further test, I rebooted the system twice more. Each time I opened Iceweasel without running ifdown/up in a terminal, just running the software, and each time it opened google.com without any problem or other intervention.



So, did installing resolvconf fix the problem? That package was not present after the apt-get dist-upgrade session. Or did I have to run ifdown/up as well? You may still want to test a new install to see if this is a Jessie bug or ??



Thanks for all your help talking me through this one!


MoroS

#23
It seems that installing resolvconf worked around the problem. I can see that ifdown launched the ISC DHCP client who's responsible for assigning the IP address to the network interface. For some reason the dist-upgrade stopped this process, but now you've got it working (not through NetworkManager, but still it's automatic right now, so it generally solves the problem of no internet connection).



As you mentioned before: other users might still have that problem, so we need to know the root cause of all this. I'm still entangled in finishing a part of my engineering thesis, so I didn't have time to test it yet, but I'm finishing it as we speak/write, so I'll be testing that case tomorrow.



It's good to know it's working for you again. :)
There's no such thing as "impossible". :)

frogprince

#24
MoroS: If and when you get two minutes to rub together (I've been a grad student myself, minutes are hard to find), I'm a retired EE and would love to know your thesis topic and the eventual root cause of all of this. Thanks for all your help!

MoroS

#25
frogprince: I'll write something about my thesis later, but right now I need to know if you did the systemd upgrade after installing of a normal dist-upgrade and nothing more?
There's no such thing as "impossible". :)

frogprince

#26
Unfortunately, no, I went ahead and did the rest of it as well. My apologies; I didn't get that you needed that info, and I should have. Rebooting after that upgrade left me with no icons or background on the desktop, and a group of error messages about failed dependencies for sparky initialization routines. I did a dist-upgrade -f and an additional forced update to intramfs, and now finally everything seems to work. One must pay careful attention to the error messages during the updates!



1.) Might the information you're seeking be in my log file somewhere?



2.) Since the machine I'm running Sparky on right now is a test machine, I'd be happy to reinstall from my original CD and document the update process more carefully, if that would help the Sparky QA process.

MoroS

#27
I did a test in an attempt to recreate the situation, but after running dist-upgrade and rebooting nothing bad happened. The network was still working (although the LightDM theme did change to the default, maybe I overwrote some config file). I would be good if you could do a reinstall and give us a detailed description of it (what steps you took, what commands you ran and what was their output... it would also be nice if you could save the output of the dmesg command after each reboot). The log files from the /var/log folder would also be helpful. I know it's a lot to ask, so feel free to ignore it if you don't have the time or interest to do it. I'll be trying to recreate the problem myself. :)
There's no such thing as "impossible". :)

frogprince

#28
MoroS: Open source has been very good to me over the last few years; I'm happy to contribute if I can. We have some family commitments tomorrow, and I teach Monday morning, but I'll check things out this next week.

frogprince

#29
MoroS: I see no way to forward attachments to you on this forum. Please email me at wmichaelb@fuse.net to let me know how to handle that.

View the most recent posts on the forum