LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 06-26-2014, 11:20 PM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Rep: Reputation: Disabled
Resolvconf.conf is only half working


I have dnsmasq set up and working on my Arch server. For some reason though, resolvconf keeps adding IP addresses that I don't specify into resolv.conf. I've done all the steps, I've added nohook resolv.conf to /etc/dhcpcd.conf, and in /etc/resolvconf.conf I've added this:
Code:
name_servers="x.x.x.x y.y.y.y"
It successfully adds those specified addresses, but it also appends two other default ones that I didn't specify. I thought using resolvconf.conf was supposed to stop this.
 
Old 06-27-2014, 03:49 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
There's usually a bit in wifi scripts and often in network ones to pass dns servers when you connect to a network by http.
Depending on how the network is set up, you may actually need them, as some networks don't allow access to outside dns servers. They can then easily block sites like facebook, twitter, porn sites, and such like.

I use Slackware, and the variable they use in the script to control this is DHCP_KEEPRESOLV. Try this to find what arch uses:
Code:
grep -ire 'RESOLV'  /etc/rc.d/*  |less
 
Old 06-29-2014, 06:16 AM   #3
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
chattr +i /etc/resolv.conf

is what I use for my special DNS
 
Old 06-29-2014, 12:46 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i had a similar problem when i installed hostsblock on my arch linux.

i'm too lazy to remember it all now, but you can read from here onwards, there should be some resolv.conf/dnsmasq related stuff there.
 
Old 06-29-2014, 02:38 PM   #5
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 105

Original Poster
Rep: Reputation: Disabled
Sorry for taking so long to respond. I didn't want to do the chattr +i method because AFAIK it can possibly mess with other things that may need to access resolv.conf. Fortunately, and also unfortunately, the problem went away but I have no idea why, so I can't post the solution. Sorry. The only IPs in my resolv.conf are the ones explicitly specified in /etc/resolvconf.conf.

Thanks everyone. Sorry I don't have a better result for other people reading this thread.
 
  


Reply



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
resolvconf on wheezy Makar Debian 1 01-30-2014 08:03 PM
Beryl/Ati/XGL half working, half not! LDJ Ubuntu 4 04-23-2007 04:05 PM
resolvconf bug? mcd Linux - Networking 2 07-25-2005 09:54 PM
router only half working. exodist Linux - Networking 0 06-01-2004 03:34 PM
Wheel group only half working ??? Mike25 Linux - Newbie 0 02-21-2003 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 07:33 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