print
while not dns:
dns = raw_input('Enter nameserver: ')
- cmd = "echo 'nameserver %s' >> /etc/resolv.conf" % dns
- cmd += '&& cp /etc/nsswitch.conf{,.bak}'
+ cmd = "echo 'nameserver %s' >> /etc/resolv.conf " % dns
+ cmd += '&& cp /etc/nsswitch.conf{,.bak} '
cmd += '&& cp /etc/nsswitch.{dns,conf}'
(out, err) = runcmd(cmd)
if err: