You are not logged in.
I want to manage my resolv.conf, but when I load a profile and I comment out the 'DNS...' line, resolv.conf becomes blank. How do I tell netctl not to touch to resolv.conf?
My solution so far is to modify this line in the resolvconf.conf file :
resolv_conf=resolv.conf2
This way, when netctl uses resolvconf to modify resolv.conf, it modifies another file.
But there must be a better solution?
Last edited by Gradient (2013-07-22 07:18:11)
Offline
Offline
I forgot to mention that I have a static IP. Your link seems to talk about dhcpcd. I don't think it would apply to my problem. I might be wrong though...
Offline
Did you try commenting the "resolv_conf" line? If commenting the line works, then you can accept the solution as intended behavior. Try and see if the service throws an error (via systemctl status for example).
Offline
It seems like your solution works. Strangely, the timestamp of resolv.conf is updated, but the content is not modified...
Offline
A little late suggestion, but you could make the file immutable with chattr.
Offline
That's odd. I thought chattr was already mentioned in this thread, because after reading it, I disappeared in man chattr for a while. Weird.
Offline
In my opinion, it is a good idea to have profile specific nameservers. If you want fallback nameservers, add them using name_servers_append in resolvconf.conf. If you want a nameserver which is always queried first, use name_servers.
Edit: If you really want a static resolv.conf, then uninstall openresolv and replace it with a dummy package which links resolvconf to /bin/true.
Last edited by progandy (2013-07-24 17:18:35)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I'm so glad I've never migrated from netcfg.
Overwriting resolv.conf is the sort of horribleness reserved for the likes of gnomes' networkmanager.
DON'T TOUCH MY CONFIGURATION FILES FFS.
Thank you and good night.
You're just jealous because the voices only talk to me.
Offline
Well, moetunes, resolv.conf has always been subject to automated changes on dynamic network configurations.
Offline