Coder Social home page Coder Social logo

davenchy / domain_to_ipv4_c Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

A simple command-line tool written in C to convert domain names to their corresponding IPv4 addresses

C 100.00%
c clang dns dns-resolution domain-to-ip domain-to-ip-convert ip ipaddress ipv4 linux

domain_to_ipv4_c's Introduction

Domain to IPv4 Converter in C

This project provides a simple command-line tool written in C to convert domain names to their corresponding IPv4 addresses. It uses the getaddrinfo function from the netdb.h library to perform DNS resolution and retrieve IP addresses associated with a given domain name.

Usage

Simply compile the provided source code and run the executable with the domain name as an argument.

$ gcc domain_to_ipv4.c -o domain_to_ipv4
$ ./domain_to_ipv4
Usage: ./domain_to_ipv4 <domain>
$ ./domain_to_ipv4 example.com
93.184.216.34

Resources

domain_to_ipv4_c's People

Contributors

davenchy 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.