Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 04-26-2009, 05:21 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Override system DNS settings

Hello all,

First post.

How can I set up Mandriva so that the wifi connection wlan0 and the 3g modem ppp0 always use the same DNS servers? I would like to use openDNS servers. At the moment, system-supplied DNS servers are always used. /etc/resolv.conf contains a warning not to edit the file as it will be overwritten.

After reading other posts, I tried to set it in ifcfg-wlan0 and ifcfg-ppp0 using PEERDNS=no, DNS1=nnnn, DNS2=nnn, but this did not seem to work after closing the connection and reconnecting? How else can I do it?


System: Mandriva 2009.0 Kernel Icewm ROX on Thinkpad T22
Old 04-26-2009, 06:00 AM   #2
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,139

Rep: Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831
Since you have a wifi connection, did you change the DNS addresses in your router?

Typically, routers pass their DNS settings back to your network.

I just set it up on a similar config. I had to change the DNS settings in my router, a Linksys, and I had to change them to match in /etc/sysconfig/network-scripts/ifcfg-eth0

This is on Mandy 2009 also.

Last edited by camorri; 04-26-2009 at 06:12 AM.
Old 04-26-2009, 05:56 PM   #3
Senior Member
Registered: Apr 2004
Location: Tweed Heads, Australia
Distribution: Devuan
Posts: 3,525
Blog Entries: 33

Rep: Reputation: 266Reputation: 266Reputation: 266
Hi, a service called mandi fetches the info from the devices, if

you want to set resolv.conf to the dns you desire, switch off the mandi service.

And it may not be overwritten at boot.

I need to do this for my 3g connection as the "wins addresses" from the modem are useless on my mandriva 2009.0 system.

Cheers Glenn
Old 04-27-2009, 12:48 AM   #4
Senior Member
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
You can tell Mandriva which DNS servers to use when you configure your connection. Clear the check mark labeled Get DNS servers from DHCP, then enter the server IP addresses manually. You should be able to do this with any Network configuration you set up in MCC (The Mandriva Control Center) located at Tools > System Tools > Configure your computer in the menu system. In MCC, navigate to Network & Internet > Set up a new network interface (LAN, ISDN, ADSL, ...).



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
i want make DNS server on fedora 8 opreting system plz tell me what is file use DNS nitin gupta Linux - Newbie 2 02-20-2008 05:01 PM
dns settings paul62 *BSD 1 04-23-2007 03:24 AM
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 03:39 PM
DNS settings Awatemono-San Linux - Newbie 3 06-18-2006 09:24 AM
33 MHz system bus -- override with idebus= jpbarto Linux - Hardware 10 05-02-2003 08:27 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:46 AM.

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
Open Source Consulting | Domain Registration