|
@@ -37,6 +37,9 @@ class Listener:
|
|
def remove_service(self, z, type, name):
|
|
def remove_service(self, z, type, name):
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
+ def update_service(self, z, type, name):
|
|
|
|
+ pass
|
|
|
|
+
|
|
def get(self):
|
|
def get(self):
|
|
"Iterator to retrieve ServiceInfo results"
|
|
"Iterator to retrieve ServiceInfo results"
|
|
while True:
|
|
while True:
|
|
@@ -115,9 +118,9 @@ def main():
|
|
rrs.append(txt_rr(p))
|
|
rrs.append(txt_rr(p))
|
|
|
|
|
|
if not args.quiet:
|
|
if not args.quiet:
|
|
- addr = inet_ntop({4:AF_INET, 6:AF_INET6}[len(p.address)], p.address)
|
|
|
|
write(";; Name: {!r}".format(p.name))
|
|
write(";; Name: {!r}".format(p.name))
|
|
- write(";; Addr: {} ({})".format(addr, p.server))
|
|
|
|
|
|
+ for a in p.addresses:
|
|
|
|
+ write(";; Addr: {} ({})".format(inet_ntop({4:AF_INET, 16:AF_INET6}[len(a)], a), p.server))
|
|
write(";;")
|
|
write(";;")
|
|
for rr in rrs:
|
|
for rr in rrs:
|
|
write(rr)
|
|
write(rr)
|