Giter VIP home page Giter VIP logo

dns-validator's Introduction

DNS Validator - Python

Reads cat /etc/resolv.conf and identifies the IP addresses inside Performs the foll checks: 1. Identifies the IP addresses from /etc/resolv.conf 2. Checks if the IP addresses are valid 3. Checks if the IP addresses or nameservers are reachable 4. Checks if queries to www.google.com can be resolved using the nameservers

Example:

[root@centos dns_parser]# python dnsResolveParser.py PING 67.207.67.3 (67.207.67.3) 56(84) bytes of data. 64 bytes from 67.207.67.3: icmp_seq=1 ttl=61 time=0.973 ms

--- 67.207.67.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.973/0.973/0.973/0.000 ms Nameserver 67.207.67.3 is reachable 172.217.164.100 Nameserver 67.207.67.3 is resolving www.google.com PING 67.207.67.2 (67.207.67.2) 56(84) bytes of data. 64 bytes from 67.207.67.2: icmp_seq=1 ttl=61 time=0.220 ms

--- 67.207.67.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.220/0.220/0.220/0.000 ms Nameserver 67.207.67.2 is reachable 216.58.195.68 Nameserver 67.207.67.2 is resolving www.google.com 2 valid entries in /etc/resolv.conf file [root@centos dns_parser]#

dns-validator's People

Contributors

adityagawade27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.