You are not logged in.
What on earth does resolv.conf.head actually do? I have never seen it actually work in any circumstance, and from my Googling on the topics of manually setting DNS servers, practically no one else can use them with any success.
I use DNSMasq for caching. Right now I have the problem of needing to preserve whatever dhcpcd puts in my /etc/resolv.conf, that way I can just let DNSMasq to use it, but I need to set the default DNS server to be localhost. I could just put "nameserver 127.0.0.1" in /etc/resolv.conf.head and, theoretically, everything would work fine, but it doesn't. Manually putting it at the top of resolv.conf, though, does work.
* Is this because the programs that consult resolv.conf are not bothering to check .head?
* Does dhcpcd need to be told to include .head and .tail when writing to resolv.conf?
* How can resolv.conf.head ever be used? Do I need a script to manually ajoin it with resolv.conf ?
The man pages for dhcpcd and resolv.conf don't seem to be useful on this topic.
Offline
Hmm, works alright for me:
cat /etc/resolv.conf.head
nameserver 127.0.0.1
nameserver 208.67.222.222
nameserver 208.67.220.220
commentstrip x /etc/dhcpcd.conf
hostname
option domain_name_servers, domain_name, domain_search, host_name
option ntp_servers
require dhcp_server_identifier
nohook lookup-hostname
noipv4ll
timeout 60
Possibly something else?
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
Works For Me ®
Are you using some network managers?
"I'm Winston Wolfe. I solve problems."
~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~
Offline
Sounds like you need openresolv
But about dhcpcd - it only re-writes /etc/resolv.conf when dhcpcd changes state. It also puts nice comments in the file. So if those comments are not there then something else was overwritten resolv.conf and not dhcpcd.
To debug dhcpcd scripts, create /etc/dhcpcd.enter-hook and put one line there
set -x
Then launch dhcpcd in the console with debugging - dhcpcd -dB
Good luck!
Offline