fix: [public-dns] filter out non-domain related fields

Fix #275 as reported by @cgrangerdc
pull/276/head
Alexandre Dulaunoy 2024-06-15 04:25:16 +02:00
parent b9519496da
commit 738861342e
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
2 changed files with 4 additions and 37 deletions

View File

@ -7171,7 +7171,6 @@
"32.pool-63.klikom.net",
"32.pool85-62-89.dynamic.orange.es",
"32.red-2-143-82.dynamicip.rima-tde.net",
"32010-emsv15-rescue",
"3239.extnet.it",
"3244.extnet.it",
"3247.extnet.it",
@ -7266,7 +7265,6 @@
"36.red-88-28-201.staticip.rima-tde.net",
"37-115-13-61.broadband.kyivstar.net",
"37-128-95-86.static.ip.netia.com.pl",
"37-129-60-61-savecom",
"37-145-15-32.broadband.corbina.ru",
"37-146-208-226.broadband.corbina.ru",
"37-148-213-124.cizgi.net.tr",
@ -9391,7 +9389,6 @@
"76.205.53.92.dynamic.reverse-mundo-r.com",
"76.223.117.91.static.reverse-mundo-r.com",
"76.42.54.195.simstar.net",
"77",
"77-105-100-53.lpok.fi",
"77-108-128-73.brightstar.limited",
"77-108-8-210-static.bbbell.com",
@ -13044,7 +13041,6 @@
"G-I-T-92.grundyiptransport.net",
"GB-LAN-64-46.kar.netsolir.com",
"GDP-WIN-234-058.as16215.net",
"GSF-MADDC01-DIA01",
"GVP-WIN-251-091.as16215.net",
"GVP-WIN-251-099.as16215.net",
"Garmoniy.Moscow.access.comstar.ru",
@ -13183,7 +13179,6 @@
"LokoTech-gw.transtelecom.net",
"M106073213001.v4.enabler.ne.jp",
"M111237115100.v4.enabler.ne.jp",
"M2-SERVER",
"MAIL.NAFSHIP.COM",
"MATRIX-DESI.bear1.Boston1.Level3.net",
"MCKAY-BROTHERS--LLC.customer.alter.net",
@ -13197,7 +13192,6 @@
"MeiMa.powersrv.de",
"Midwest-Techno.Moscow.access.comstar.ru",
"NEG.CAPRICORN.CL",
"NETLINE-NET",
"NK210-63-211-41.static.apol.com.tw",
"NS1.MyOffice.cz",
"NS2.DOKSERVER.com",
@ -13205,7 +13199,6 @@
"NS2.usls.edu.ph",
"Nat-Pool-61-19-66-176.cdma.cat.net.th",
"Nat-Pool-61-19-66-93.cdma.cat.net.th",
"Nexz",
"Notarius-GkG.Moscow.Access.Comstar.ru",
"OCI-160.120.189.226.aviso.ci",
"OCI-160.154.48.46.aviso.ci",
@ -13234,8 +13227,6 @@
"PPPoE-78-29-120-182.san.ru",
"PPPoE-78-29-78-97.san.ru",
"PPPoE-88-147-169-220.san.ru",
"PTR",
"Plex",
"Pool-102.41.97.138.g20telecom.net.br",
"Postscript.Moscow.access.comstar.ru",
"R.J.SCHINNE.bar1.Portland1.Level3.net",
@ -13261,7 +13252,6 @@
"SCZ-181-188-150-00242.tigo.bo",
"SCZ-181-188-156-00204.tigo.bo",
"SCZ-190-104-17-00004.tigo.bo",
"SEATEL-CACHE-1",
"SERVER01.tcm.local",
"SF-23715.tagadab.com",
"SIW567864.slam.t-com.hr",
@ -14335,7 +14325,6 @@
"athedsl-4561970.home.otenet.gr",
"athedsl-87346.home.otenet.gr",
"athkosproxy.kosmocar.gr",
"atlanta",
"atlas-p34.cust.smartspb.net",
"ato008-1011974.routed.opal-solutions.com",
"atoulouse-652-1-122-54.w2-6.abo.wanadoo.fr",
@ -14467,7 +14456,6 @@
"balticom-73-107-142.balticom.lv",
"balticom-93-151.balticom.lv",
"bap3133793.lnk.telstra.net",
"barthes",
"bas33-1_migr-82-66-5-205.fbx.proxad.net",
"bas33-1_migr-82-66-6-102.fbx.proxad.net",
"bashkirgaz2.ufanet.ru",
@ -14728,7 +14716,6 @@
"boston2-qwest.bellatlantic.net",
"boulder.earthnet.net",
"bow.mauritel.mr",
"boza-wola",
"br137-h02-5-50-203-37.dsl.sta.abo.bbox.fr",
"bracewell-9.edge1.dal006.us.unitasglobal.net",
"bras-79-132-9-48.comnet.bg",
@ -16980,7 +16967,6 @@
"claro200-228.palermoslots.com.ar",
"clbls2.com.au",
"clean-celery.aeza.network",
"clearadminnew",
"cleartext1.g-service.ru",
"cli-188-239-199-7.bbn.slav.dn.ua",
"cli-4622ee46.wholesale.adamo.es",
@ -18056,7 +18042,6 @@
"ddns0.xes-net.com",
"de.adhole.org",
"de11.araxcloud.com",
"deb11-1-6490",
"ded01.blink-eye.com",
"dedi77986.whmpanels.com",
"dedicated-aia167.rev.nazwa.pl",
@ -18105,7 +18090,6 @@
"dev250.net176.ip-net.sk",
"dev45.net182.ip-net.sk",
"device-170-238-72-224.fibralink.net.br",
"dez1",
"dg-vpn01.drlund-gym.dk",
"dg-vpn02.drlund-gym.dk",
"dhclient-94.100.148.7.flashcable.ch",
@ -18392,7 +18376,6 @@
"dns11.quad9.net",
"dns12.quad9.net",
"dns13.dom.kks.yahoo.co.jp",
"dns2",
"dns2-out.nethelp.cl",
"dns2-roc.paetec.net",
"dns2.77globalservices.com",
@ -18475,7 +18458,6 @@
"dnsforge.de",
"dnsg.psyk.fr",
"dnslas.netrope.com",
"dnslux",
"dnspirat.de",
"dnspro.gstelecom.net",
"dnsr3.voipo.io",
@ -19849,7 +19831,6 @@
"free.hapihhost.in.145.160.103.in-addr.arpa",
"freedns.controld.com",
"freenet.am",
"freudenhaus",
"freya.stelas.de",
"frhb37382flex.ikexpress.com",
"frond.ae1x367.dhiblang.lubman.net.pl",
@ -22613,7 +22594,6 @@
"ijn131.internetdsl.tpnet.pl",
"ik1-410-37047.vs.sakura.ne.jp",
"ik1-439-51724.vs.sakura.ne.jp",
"ikea-p004",
"ilhwatech.com",
"ilz143.internetdsl.tpnet.pl",
"image-dns1.image-model.com",
@ -24568,7 +24548,6 @@
"katy.ar01.host108.scalematrix.net",
"kaunas.mediaskopas.lt",
"kayako.cstore.pl",
"kazanluk",
"kebree.fr",
"keeper.garantsl.ru",
"kehaidis.static.otenet.gr",
@ -25135,7 +25114,6 @@
"loa-lvl3-tex09.rbn.com",
"loanin.skylarkactive.org",
"lobscretess.infotainsys.com",
"localhost",
"locust.juri.hamburg",
"log.or.kr",
"log2.cityonlinebd.net",
@ -26269,7 +26247,6 @@
"modemcable246.125-37-24.static.videotron.ca",
"modula.tv",
"mohga.daxitian.org.uk",
"mohistmc",
"molphil.com.ph",
"momo.psyduck.xyz",
"monitoring.itlab73.ru",
@ -28447,7 +28424,6 @@
"nordgedanken.dev",
"nordns.crowncloud.net",
"northcountyfireems.com",
"not-assigned-yet",
"nov019-1033122.routed.opal-solutions.com",
"nov019-1033130.routed.opal-solutions.com",
"nova-078-040-253-033.cpe.novanet.is",
@ -29268,7 +29244,6 @@
"ntsvrpx.cityofselma.com",
"nuberb02.nubenet.com.ar",
"nubesrv05.nubenet.com.ar",
"null",
"nvrserver.ustelekom.net",
"nw.jms-ltd.co.uk",
"nwtest.zoo.co.jp",
@ -29925,7 +29900,6 @@
"phoenixwarehouse.wintek.com",
"phole.allns.fr",
"phpru.com",
"pi-hole",
"pi-hole.3x1t.eu",
"pi-hole.pgnwis.com",
"pi-hole.sblo.ch",
@ -31223,7 +31197,6 @@
"rt246bb131-145-100.routit.net",
"rt35bb146-89-15.routit.net",
"rt42bb146-89-63.routit.net",
"rt_fasonet_ls",
"rtr-glht-elgn.wowaccess.net",
"rtr.23.90.206.66.unyc.it",
"rtr.23.90.236.64.unyc.it",
@ -33365,7 +33338,6 @@
"unallocated179.unioncom.net.ua",
"unallocated204.unioncom.net.ua",
"unasigned-94.24.54.252.xservers.ro",
"unassigned",
"unassigned-81-90-243-238.ujezd.net",
"unassigned-81-90-244-15.ujezd.net",
"unassigned-81-90-247-62.ujezd.net",
@ -33381,10 +33353,7 @@
"unassigned.maks.net",
"unassigned.psychz.net",
"unassigned.quadranet.com",
"undefined-166",
"undefined-190-9.tvoetv.com.ru",
"undefined-252",
"undefined-91",
"undefined.hostname.localhost",
"underground-macarons.com",
"undostar.net",
@ -33450,7 +33419,6 @@
"unn-89-187-160-91.cdn77.com",
"unn-89-187-173-221.cdn77.com",
"unnamed.as263702.net",
"unreachable",
"unspecified.mtw.ru",
"unusal.antycip.co.uk",
"unused-213.111.121.178.bilink.ua",
@ -34248,7 +34216,6 @@
"website2.aniomani.com",
"webwiz57.widagroup.net",
"webx.lph.la",
"weedoodev",
"wellbeinghealthacademy.com",
"wg.or.cyfr.tel",
"whiteking.rfm.com.ph",
@ -34258,7 +34225,6 @@
"wifi.connect-online.ru",
"williamhenry.com",
"willy.golhum.com",
"wilsouk",
"wimax-client.yota.ru",
"wimax-cpe-189-208-19-247.gdljal.static.axtel.net",
"wimax-pool-11-210.mtel.net",
@ -34827,5 +34793,5 @@
],
"name": "List of known public DNS resolvers expressed as hostname",
"type": "hostname",
"version": 20240405
"version": 20240615
}

View File

@ -66,9 +66,10 @@ def get_lists_publidns(file) -> Tuple[List, List, List]:
elif ip.version == 6:
lipv6.append(ip.compressed)
if row[1] not in (None, '', '.', '-.'):
if row[1] is not None:
row[1] = row[1].rstrip('.')
lhostname.append(row[1])
if ('.') in row[1]:
lhostname.append(row[1])
except ValueError as exc:
logging.warning(str(exc))