ridham35 / proxy-app

0 stars 0 forks source link

Sample issue #1

Open ridham35 opened 3 weeks ago

ridham35 commented 3 weeks ago

sample

ridham35 commented 4 days ago

0 PTR ANJTMDAHVZWvMME-L-NK-X-04_vlan943_IPDS0.msc.vzwnet.com.0 1.0.0.0.0.0.0.0.b.0.0.0.6.8.3.0.1.f.1.3.4 PTR CTTPMIBGVZWvOCN-L-QW-CACHE-00-F5VFW-C01.1.0.0.0.0.0.0.0.b.0.0.0.6.8.3.0.1.f.1.3.4 2 PTR vistca65vzwcsmf-y-ec-consp-001-vlan-282-vpn-gw-01.2 0 PTR vistca65vzwcsmf-y-ec-conss-001-vpn-gw-01-edn-ecmp.0 7.6.0.0.0.0.0.0.0.0.4.0.6.2.2.0.8.0 PTR PMBRFLTFB4C-NK-616134545-01.7.6.0.0.0.0.0.0.0.0.4.0.6.2.2.0.8.0 4.2.e.1 PTR alprgagqvzwcupf-y-ca-conss-000-rmsvc-x-ran-v6-lbk-pod-003.4.2.e.1 8.8.8.8 PTR cafominid1-v6.nss.vzwnet.com. b.0.0 PTR stlsmoyqnce-h-pe1dlsc-006.vzcpe.net. 2.9.0.0.0.0.0.0.0.0.0.0.d.1.d PTR NWBLWICZSTR-Z-vJSA-01.nds.vzwnet.com.

ridham35 commented 4 days ago

(?<=PTR\s)(?!..(com|net)$)(?!..(0|1|[a-f]).$).+

i have 100000 lines like this 0 PTR ANJTMDAHVZWvMME-L-NK-X-04_vlan943_IPDS0.msc.vzwnet.com.0 1.0.0.0.0.0.0.0.b.0.0.0.6.8.3.0.1.f.1.3.4 PTR CTTPMIBGVZWvOCN-L-QW-CACHE-00-F5VFW-C01.1.0.0.0.0.0.0.0.b.0.0.0.6.8.3.0.1.f.1.3.4 2 PTR vistca65vzwcsmf-y-ec-consp-001-vlan-282-vpn-gw-01.2 0 PTR vistca65vzwcsmf-y-ec-conss-001-vpn-gw-01-edn-ecmp.0 7.6.0.0.0.0.0.0.0.0.4.0.6.2.2.0.8.0 PTR PMBRFLTFB4C-NK-616134545-01.7.6.0.0.0.0.0.0.0.0.4.0.6.2.2.0.8.0 4.2.e.1 PTR alprgagqvzwcupf-y-ca-conss-000-rmsvc-x-ran-v6-lbk-pod-003.4.2.e.1 8.8.8.8 PTR cafominid1-v6.nss.vzwnet.com. b.0.0 PTR stlsmoyqnce-h-pe1dlsc-006.vzcpe.net. 2.9.0.0.0.0.0.0.0.0.0.0.d.1.d PTR NWBLWICZSTR-Z-vJSA-01.nds.vzwnet.com.

i want to find lines where something don't ends with .com. or .net. it can't complete with .0., .1., or .a. this is means it cannot ends with single letter between 0-1 or a-f

Except last 3 lines each line is incorrect. Only last 3 line are correct.

If it helps this is ptr record in dns zone file. find me a regex to match the incorrect hostname i mean the string apeearing after PTR