Prerequisite: Python GUI – tkinter
In this article, we are going to see how to find IP from Domain Names and bind it with GUI Application using Python. We will use iplookup module for looking up IP from Domain Names. It is a small module which accepts a single domain as a string, or multiple domains as a list, and returns a list of associated IP.
Run this code into your terminal for installation.
pip install iplookup
- Import module
- Create objects of iplookup
- Pass the domain into iplookup obj
- Now traverse the IP
Domain name : geeksforgeeks.org Ip : ['220.127.116.11']
IP lookup from domain GUI Application with Tkinter: This Script implements the above Implementation into a GUI.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.