This will instruct nslookup to use your local DNS resolver instead of the one set in this nslookup session. If that server can't resolve the IP address of the new DNS server, then you can use lserver instead. It will try to do so with the currently set DNS server. If you use the DNS server's hostname, then nslookup needs to resolve that to an IP address. To set the DNS server in interactive mode, enter server 8.8.8.8 to switch to Google's public DNS servers. This way, you can keep an nslookup session open. You can run nslookup in interactive mode by typing nslookup without a domain name. You can change the port nslookup uses by adding the -port=42 option.įor example: nslookup -port=42 isc.org 8.8.8.8 Setting a DNS server in nslookup's interactive mode In that case, you'll have to tell nslookup to use that port instead. But some DNS servers listen on a different port. Specifying the port numberĭNS uses port 53. On Linux and macOS, type man nslookup instead. On Windows, you can type nslookup /? to get a short help message. If you ever forget the order of nslookup's parameters, remember that you can check them from the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |