LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2017, 07:42 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Fedora 23 Howto set default dns server order?


Hi group,
I just set up DNS on my R-Pi 3 and it works well on the sever. Now I need to set up my laptop to use the new server. I updated /etc/sysconfig/network-scripts/ifcfg-wlan0 with this:
Code:
HWADDR=30:10:B3:76:77:02
ESSID="wlan0"
MODE=Managed
TYPE=Wireless
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=xxzzy
UUID=4b6ca00b-1840-49fc-94ed-919f9d7ca9f6
ONBOOT=yes
DNS1=10.1.1.12
DNS2=8.8.8.8
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
Notice the DNS entry order. Every time I connect via wireless, my /etc/resolv.conf looks like this:
Code:
# Generated by NetworkManager
search Mt-Umunhum-Wireless.net
nameserver 8.8.4.4
nameserver 8.8.8.8
nameserver 10.1.1.12
Notice the order now. Were do I change the DNS servers to correctly order them the way I want?

Thanks for your time.
 
Old 03-05-2017, 12:07 AM   #2
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Solved; I had to change: PEERDNS=yes to PEERDNS=no.
 
Old 03-05-2017, 12:00 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,618

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
also BE AWARE
fedora 23 is past it's END OF LIFE
-- DO NOT USE!!! --

please stay current and install fedora 25
 
  


Reply

Tags
dns, order, server


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] Fedora 20 - how to change default boot order terry-duell Fedora 6 06-13-2014 12:24 AM
[SOLVED] Howto set default download directory to one on the network? hdp160 Linux - Newbie 2 08-27-2012 10:24 AM
LXer: PDNSD HowTo - A DNS Caching Personal Server (Fedora 16) LXer Syndicated Linux News 0 12-16-2011 02:40 PM
Howto set Xmms as the default media player newjuan Linux - Newbie 1 05-26-2004 10:08 PM
HOWTO set up DNS dellcom1800 Linux - Networking 5 08-15-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:15 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
Open Source Consulting | Domain Registration