LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-02-2013, 05:02 PM   #1
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Rep: Reputation: Disabled
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.

Last edited by Soapm; 04-02-2013 at 05:07 PM.
 
Old 04-02-2013, 10:14 PM   #2
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Original Poster
Rep: Reputation: Disabled
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.

Last edited by Soapm; 04-02-2013 at 10:15 PM.
 
Old 04-02-2013, 11:17 PM   #3
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Original Poster
Rep: Reputation: Disabled
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?
 
  


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] changing DNS server Cultist Slackware 5 10-04-2011 05:36 PM
[SOLVED] DNS: changing from one server to another Dark_Helmet Linux - Server 2 12-14-2010 07:07 PM
Debian Slow DNS after enabling dns caching kuangchen Debian 0 04-12-2008 01:18 PM
Changing DNS Ztyx Linux - Networking 2 10-08-2004 06:13 AM
changing ip and dns name j-me Linux - Networking 4 09-17-2003 08:42 AM


All times are GMT -5. The time now is 06:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration