David Mathog
2007-05-29 22:01:29 UTC
resolvconf: one step forward (in theory), 5 steps back (in practice).
Once upon a time (like, for as long as I've been using unix, so at least
20 something years) there was a file /etc/resolv.conf into which one
placed as many nameserver records as needed. For various reasons some
of the workstations I manage have 3 nameserver records. Then along comes
Mandriva 2007.1 and /etc/resolv.conf is generated automagically by
resolv.conf, and it appears that the nameserver records are derived from
/etc/sysconfig/network-scripts/ifcfg-eth0
specifically the DNS1= and DNS2= lines. To test I reordered the DNS1 and
DNS2 records in ifcfg-eth0 and restarted the network, and those changes
showed up in /etc/resolv.conf. So, I tried putting a DNS3= line in
ifcfg-eth0, did a
service network restart
and /etc/resolv.conf was rewritten - but only with the first two
nameserver records. I tried to trace it back through
/etc/resolvconf/update.d/libc
but got lost and couldn't figure out exactly where it was pulling the
DNS names from ifcfg-eth0.
So why is it that resolvconf accepts DNS1 and DNS2 but not DNS3???
This may sound like it's coming from a Luddite, but it completely
escapes me what the advantage is of using resolvconf over simply editing
/etc/resolv.conf. The DISadvantage of using resolvconf is, I think,
manifestly evident in the current problem.
Oh yes, I did try using drakconf to change this. That let me enter a
third nameserver record (but no option to enter a 4th), and that third
entry did end up in /etc/resolv.conf. However this REMOVED the DNS3=
entry from
/etc/sysconfig/network-scripts/ifcfg-eth0
This is much, much, MUCH too much mystery for a key system configuration
step.
Thanks,
David Mathog
Once upon a time (like, for as long as I've been using unix, so at least
20 something years) there was a file /etc/resolv.conf into which one
placed as many nameserver records as needed. For various reasons some
of the workstations I manage have 3 nameserver records. Then along comes
Mandriva 2007.1 and /etc/resolv.conf is generated automagically by
resolv.conf, and it appears that the nameserver records are derived from
/etc/sysconfig/network-scripts/ifcfg-eth0
specifically the DNS1= and DNS2= lines. To test I reordered the DNS1 and
DNS2 records in ifcfg-eth0 and restarted the network, and those changes
showed up in /etc/resolv.conf. So, I tried putting a DNS3= line in
ifcfg-eth0, did a
service network restart
and /etc/resolv.conf was rewritten - but only with the first two
nameserver records. I tried to trace it back through
/etc/resolvconf/update.d/libc
but got lost and couldn't figure out exactly where it was pulling the
DNS names from ifcfg-eth0.
So why is it that resolvconf accepts DNS1 and DNS2 but not DNS3???
This may sound like it's coming from a Luddite, but it completely
escapes me what the advantage is of using resolvconf over simply editing
/etc/resolv.conf. The DISadvantage of using resolvconf is, I think,
manifestly evident in the current problem.
Oh yes, I did try using drakconf to change this. That let me enter a
third nameserver record (but no option to enter a 4th), and that third
entry did end up in /etc/resolv.conf. However this REMOVED the DNS3=
entry from
/etc/sysconfig/network-scripts/ifcfg-eth0
This is much, much, MUCH too much mystery for a key system configuration
step.
Thanks,
David Mathog