Closed GoogleCodeExporter closed 8 years ago
It's beyond the scope of the namebench project to automatically apply changes.
However, I have added
resolv.conf style output that might be useful. It's available as of revision
849.
./namebench.py -t resolv.conf -o /tmp/resolv.conf
You would still need some sort of script to check and make sure this file is
not empty, and then copy it to /etc:
#!/bin/sh
./namebench.py -t resolv.conf -o /tmp/resolv.conf
if [ "`grep "^nameserver" /tmp/resolv.conf`" ]; then
sudo cp /tmp/resolv.conf /etc/resolv.conf
fi
That's about all I am comfortable doing for this.
Original comment by helixblue
on 16 May 2010 at 10:18
Original issue reported on code.google.com by
fabio.al...@gmail.com
on 12 Mar 2010 at 9:15