DNS lookup
import socket
while True:
print('Input a website address.')
addr1 = socket.gethostbyname(input())
print('Your inputtet address ip: ' + addr1)
import socket
# A While-Loop that askes for a website and converts it into an Ip Address.
def gethostnameMethod():
while True:
print('Input a website address.')
addr1 = socket.gethostbyname(input())
print('Your inputtet address ip: ' + addr1)
gethostnameMethod()