6 if (len(sys.argv) < 2):
7 print "Usage: %s <service> [nameserver*]" % (sys.argv[0])
10 bus = dbus.SystemBus()
11 path = "/net/connman/service/" + sys.argv[1]
12 service = dbus.Interface(bus.get_object('net.connman', path),
13 'net.connman.Service')
15 properties = service.GetProperties()
17 print "Setting nameserver to %s" % (sys.argv[2:])
19 service.SetProperty("Nameservers.Configuration",
20 dbus.Array(sys.argv[2:], signature=dbus.Signature('s')))