LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing DNS Debian (https://www.linuxquestions.org/questions/linux-newbie-8/changing-dns-debian-4175456583/)

Soapm 04-02-2013 04:02 PM

Changing DNS Debian
 
I am trying to change from using opendns to the DNS of my provider since opendns seems to be extremely slow these days. My router is the DHCP server. Windows was a snap (and how I'm posting this message) since it's set to DHCP but Debian has become a nightmare. To the best of my knowledge it's set to DHCP on the wireless interface but for some reason the web is next to impossible to surf and I continually see "connecting to guidetest.opendns.com. WTF,ahaving this problem. I checked wireless in the Gnome gui and it's set to DHCP (I think but it's hard to say for sure since it's confusing).

I changed the DNS in /etc/resolvconf/resolv.conf.d/base. Do I need this for a laptop? I'm not sure why this was installed or what it does but I did have problems getting networking to work via wireless so typical of a Debian newbie I googled and threw every solution I found at this thing until it worked. My gut told me a lot of it was old or for creating a DHCP server but since most of it was undated or not specific what it was for I went with it.

I can do nslookup www.google.com and it works fine, I see my providers DNS servers and I get a instant response. The problem is only with the webbrowser and when I do aptitude update. aptitude update is so slow it's basically not usable and I keep seeing this looking up guidetest.openndns.com which should be all gone.

How do I purge these old addresses and why is there so many different ways to add a DNS server and why doesn't DHCP override them all? This is frustrating...

Is there a simple guide to setting up simple ip4 networking on a laptop (no server action) that I can purge most of this stuff and start from scratch.

Soapm 04-02-2013 09:14 PM

ok, I uninstalled crap until my network went down. I think added the below into /etc/network/interfaces which brought up eth0 working on DHCP but my wireless seems to still be down. The good news is my network conection is snappy like it is in Windows and I don't see that guidetest.opendns as it moves to the site.

How can I test my wirless connection to see why it's not working?

Code:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto wlan0
iface wlan0 inet dhcp

auto eth0
iface eth0 inet dhcp

And this is what I get from wlan0.

Quote:

root@Peace:/# service networking restart
[....] Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/a4:17:31:dd:c3:e5
Sending on LPF/wlan0/a4:17:31:dd:c3:e5
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
^CDHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
Unable to obtain a lease on first try. Exiting.
Failed to bring up wlan0.

Soapm 04-02-2013 10:17 PM

Well, now the wired connection stopped working. Anyway to get networking back to default without an internet connection? Is there a way to do it using the disk without having to reinstall the complete system?


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