Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-19-2005, 09:34 PM   #1
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
set static dns server ip address in debian

need to set a static address for dns on my debian box. i have edited my /etc/network/interfaces as such
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
do i just add a dns line to this with my dns server info?

also after editing this file i ran the following command and got this error
/etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...SIOCDELRT: No such process
ifup: interface lo already configured

Last edited by jsmarshall85; 06-19-2005 at 09:36 PM.
Old 06-19-2005, 10:26 PM   #2
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
DNS entries go in /etc/resolv.conf
Old 06-19-2005, 10:36 PM   #3
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
They can also go in /etc/network/interfaces, eg
        # dns-* options are implemented by the resolvconf package
        dns-nameservers hooha and whatnot
        dns-search foobar
Have you just done a kernel upgrade/recompile ? Anyhoo, the SIOCDELRT error is possibly due to either the wrong driver compiled for the network card, or the incorrect one being loaded. You could try running
depmod -a
/etc/init.d/networking restart

Old 06-20-2005, 08:18 AM   #4
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
thanks to both of you
i did upgrade my kernel to 2.6.11-1-686, but havent recompilied it so it could be that or something with the driver, i will do both of these tonight at home and let you know

again thanks!

Last edited by jsmarshall85; 06-20-2005 at 08:19 AM.
Old 06-07-2009, 07:43 AM   #5
LQ Newbie
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Originally Posted by Noth View Post
DNS entries go in /etc/resolv.conf
thank you very much.
its ver helpful to me .
Old 09-07-2009, 06:44 AM   #6
Registered: Nov 2008
Posts: 39

Rep: Reputation: 15
Hi there,i've got a similiar problem;i installed debian stable on my granmother's pc and everything works fine,for her,but recently he complaind about a site wich she can't connect.I already know that on my connection you might have to add the dns-search domain manually,i don't know why but it is.However everytime i reboot the pc and the networkmanager connect to the wireless network those extra dns numbers disappear.By setting it via gnome(network-admin or something like)i get it working (i can ping that site!) but they disappear everytime.I noticed network manager store that info in /etc/resolv.conf adding a line with the dns-search domain but the file is generated when connecting to the wireless network.I purged the package resolvconf and avahi-dnsconfd and tried to add dnsutils;but no way to store permanently those numbers.....any ideas??


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
How do I set up Slackware 9.1 to use DHCP with a static DNS? h00chman Linux - Newbie 2 12-18-2012 09:30 AM
Adding 'static' records to a Cacheing only DNS server? Paul_Randle Linux - Networking 3 08-19-2005 07:18 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
How to set a static IP and DNS server phil1076 Linux - Networking 1 08-19-2003 06:20 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration