함수 gethostbyname()

1 개요[ | ]

함수 getgostbyname()

2 Go[ | ]

package main

import (
	"fmt"
	"net"
)

func main() {
	ips, _ := net.LookupHost("example.com")
	fmt.Println(ips)
}

3 PHP[ | ]

$ip = gethostbyname('example.com');
echo $ip;

4 Python[ | ]

import socket
ip = socket.gethostbyname('example.com')
print(ip)
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}