1 lappend auto_path
[pwd]
5 dns
::configure -nameserver 8.8.8.8
7 puts "Resolve with udp"
8 set tok
[dns
::resolve www.tcl.
tk]
9 puts status
=[dns
::status $tok]
10 puts address
=[dns
::address $tok]
11 puts names
=[dns
::name $tok]
15 dns
::configure -protocol tcp
17 puts "Resolve with tcp"
18 set tok
[dns
::resolve www.google.com
]
19 puts status
=[dns
::status $tok]
20 puts address
=[dns
::address $tok]
21 puts names
=[dns
::name $tok]