[Cialug] resolvconf - good, bad or ugly?

Jeff Chapin chapinjeff at gmail.com
Mon Nov 24 18:55:09 CST 2008


1) chattr +i  /etc/resolv.conf
2) VICTORY!
3) Reboot as needed.

David Champion wrote:
> Yeah... I'm well versed in editing it manually... it's just when you
> reboot, it gets clobbered by the resolveconf script (and maybe when
> you do other things like "service network restart"?). My first clue
> should have been the comment at the top that says:
>
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
> resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
>
> I added this comment to /etc/resolvconf/resolv.conf.d/head:
> # add DNS1=xx.xx.xx.xx in /etc/sysconfig/network-scripts/ifcfg-eth0
>
> I've seen conf files with those kinds of comments before, but they
> weren't really serious about it... :)
>
> -dc
>
> Dave J. Hala Jr. wrote:
>> On my RHEL5 boxes, when doing them manually, I do them like this:
>>
>> nameserver 217.261.233.2
>> nameserver 217.261.233.1
>> search  somedomain.org
>>
>> It may not apply to Mandriva, but then again, it might.  I always edit
>> resolv.conf manually.
>>
>>
>>
>> :) Dave
>>
>>
>>
>> On Mon, 2008-11-24 at 17:11 -0600, David Champion wrote:
>>  
>>> So... my latest server update (to Mandriva 2009) includes the change
>>> to using the "resolvconf" script for maintaining /etc/resolv.conf.
>>>
>>> I recall the good old days when RedHat used the "awesome" program
>>> linuxconf to maintain configuration files. And by "awesome", I mean
>>> it overwrites config files for you and breaks stuff. The resolvconf
>>> script is similarly awesome.
>>>
>>>  From what I can tell, the "proper" way for me to specify DNS
>>> servers is to add them to my
>>> /etc/sysconfig/network-scripts/ifcfg-eth0 script as:
>>> DNS1=dns1.server.ip.addr
>>> DNS2=dns2.server.ip.addr
>>>
>>> BTW, the man page for resolvconf is one of those esoteric man pages
>>> that talks about all kinds of junk except the pragmatic information
>>> one might need to actually USE it.
>>>
>>> Am I doing this right? Am I just being too grumpy? Is it really that
>>> hard to edit /etc/resolv.conf?
>>>
>>> -dc
>>>
>>>
>>> _______________________________________________
>>> Cialug mailing list
>>> Cialug at cialug.org
>>> http://cialug.org/mailman/listinfo/cialug
>>>     
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug



More information about the Cialug mailing list