nslookup root server code example Example: how to find DNS root server ip nslookup nslookup -type=NS .