September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
14
Task/DNS-query/Erlang/dns-query.erl
Normal file
14
Task/DNS-query/Erlang/dns-query.erl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
33> {ok, {hostent, Host, Aliases, AddrType, Bytes, AddrList}} = inet:gethostbyname("www.kame.net", inet).
|
||||
{ok,{hostent,"orange.kame.net",
|
||||
["www.kame.net"],
|
||||
inet,4,
|
||||
[{203,178,141,194}]}}
|
||||
34> [inet_parse:ntoa(Addr) || Addr <- AddrList].
|
||||
["203.178.141.194"]
|
||||
35> f().
|
||||
ok
|
||||
36> {ok, {hostent, Host, Aliases, AddrType, Bytes, AddrList}} = inet:gethostbyname("www.kame.net", inet6).
|
||||
{ok,{hostent,"orange.kame.net",[],inet6,16,
|
||||
[{8193,512,3583,65521,534,16127,65201,17623}]}}
|
||||
37> [inet_parse:ntoa(Addr) || Addr <- AddrList].
|
||||
["2001:200:DFF:FFF1:216:3EFF:FEB1:44D7"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue