Questions tagged [nslookup]

GENERAL NSLOOKUP SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. nslookup (name server "lookup") is a utility that queries the Domain Name System (DNS) to obtain domain name or IP address mapping.

nslookup is commonly used to refer to the network administration command-line tool found in most operating system, but can also be used to reference component libraries, which are available for a variety of programming languages.

References:

256 questions
2
votes
1 answer

dig NS and nslookup give outdated nameservers; +trace or whois are correct

Some time ago (months), I updated the nameservers for a number of domains I control; both the old and new nameservers are run by the same hosting company. The NS records are correct with the registrar, and the correct records are shown by a whois…
Dan W
  • 131
  • 8
2
votes
1 answer

Using nslookup to find what name servers were contacted in a query

I'm using nslookup to find the DNS name that has the a given IP address as one of its associated addresses. So, I use nslookup interactively... command line > nslookup - set query=ptr 24.248.56.68 Non-authoritative answer: 68.56.248.24.in-addr.arpa…
Earl DeDo
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

dig +short doesn't work when querying root DNS server?

I've found that if I query a UK root DNS server directly (e.g 195.66.240.130) it provides a result in 2-5ms vs querying a regular DNS server which takes 15-40ms. However, for some reason the +short option doesn't work when querying…
Stevie
  • 245
  • 4
  • 9
2
votes
2 answers

Nslookup in Bash Script

How can I get result of a dns mx record with nslookup in a .sh file that it would do all its steps automatically without questioning set type=mx then domain. I just want execute ./file.sh then it give me the result. The bash file might be something…
CheckYourSec
  • 143
  • 3
  • 11
2
votes
1 answer

Azure DNS name resolution issues

I have created a new Azure DNS Zone for the test domain idlebytes.tk, and i have added few subdomains like www.idlebytes.tk in Azure. I am able to view those DNS records using Azure-cli tools. But when i try to use nslookup by explicitly setting the…
Satheesh
  • 803
  • 1
  • 11
  • 28
2
votes
1 answer

Mail of PHP, DNS request timed out, and FQDN

I want to make mail() of PHP work in my Windows Server 2012 R2. To this end, I first installed SMTP by following this page. One thing that confuses me is the Full-qualified domain name. WIN-RFELH8GM0KN is what it proposes by default. My server hosts…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
2
votes
1 answer

External DNS lookup web service (NSLOOKUP / DiG)

Several sites offer hostname to IP conversions, or in their wording: Query a DNS domain nameserver to lookup and find IP address information of computers in the internet. Convert a host or domain name into an IP address. However, I haven't…
Ohad Schneider
  • 36,600
  • 15
  • 168
  • 198
2
votes
1 answer

Linux Kernel Module program to obtain domain name from IP

I have a requirement to obtain the domain name from the destination IP from an outgoing packet. I am successful in capturing and obtaining the destination IP packets using the netfilter hook as shown below. unsigned int hook_func_out(unsigned int…
Hasitha Shan
  • 2,900
  • 6
  • 42
  • 83
2
votes
2 answers

Getting default server Unknown after configuring DNS by nslookup

I am new to windows server. I just installed DNS on windows 2012 server. Here is how it appeared after installing Then i went to DNS manager. I created a new Forward Primary zone and reverse zone. Here is the screen shot Then i created the record…
Basit
  • 8,426
  • 46
  • 116
  • 196
2
votes
2 answers

Nslookup in batch for loop - why isn't it working?

I've created a batch script to read IP addresses or hostnames from a file, and feed them to nslookup, however when I run the script, it says that the system did not find the file. What am I doing wrong? Here's the code: @echo off setlocal…
LZozzy
  • 21
  • 1
  • 2
2
votes
1 answer

Redirecting Output from Cmd Prompt

New to programming and I'm writing a process which is supposed to open up the cmd prompt, run the command "/k nslookup 123.123.123.123; And then redirect the standard output into a string so the data can be manipulated. I've tried various…
2
votes
2 answers

What is difference between nslookup and GetHostEntry?

nslookup google.co.kr IP results change whenever I tried this command But in C#, using method GetHostEntry() in library System.Net.Dns, I got always same results. I wanna know why this phenomenon has been occured and whether I can get same reuslt…
Jehyun Shim
  • 91
  • 2
  • 11
2
votes
1 answer

DNS lookup and HTTP proxies

How are DNS lookups managed when using a proxy ? I tried to nslookup google.com and it is unable to find it from my local DNS so what is the path of DNS lookups with a simple HTTP proxy ?
Julio Guerra
  • 5,523
  • 9
  • 51
  • 75
2
votes
2 answers

DNS Lookup failed - Error with all browsers

Please scroll down for the solution that solved my problem... Question ::: Firstly, please excuse me for asking this question here. I have searched other sites in SO network, but I didn't really understand where to put this and this is the only…
Vamsi Challa
  • 11,038
  • 31
  • 99
  • 149
2
votes
2 answers

nslookup capture stderr in a variable and display

In a shell script I am running nslookup on number of URLs Sometimes some url returns cannot resolv error. I need to capture those errors in a variable. here is code for nslookup which gets ip address returned output=$(nslookup "$URL" | grep Add |…
user2074894
  • 47
  • 3
  • 10