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
1
vote
1 answer

How to query TXT and SRV records from Windows?

I am attempting to query a set of SRV records using the naked host name (e.g. _service._proto) however this fails unless I also include the domain name. This is strange because other tools such as nslookup work fine and also using the same API call…
Robert Jordan
  • 1,053
  • 1
  • 10
  • 17
1
vote
1 answer

How to measure DNS lookup time in C

So I want to find out how long it takes to lookup DNS in a C program. I am using the function getaddrinfo() to do the DNS lookup so I thought I have to simply measure the time this function takes to return, in order to get the dns lookup time.…
Bernhard Jaeger
  • 3,373
  • 2
  • 10
  • 18
1
vote
1 answer

dns.resolveCname fails when there are large amounts of CNAMEs to be resolved

I'm writing a program to resolve about 10,000 CNAMEs. The problem I have is that dns.resolveCname() returns Error: queryCname ESERVFAIL error when the number of CNAMEs to be resolved gets too large. The code looks like the following: const dns =…
Brian
  • 12,145
  • 20
  • 90
  • 153
1
vote
0 answers

getaddrinfoW returns 11001 for any hostname but works if IP entered

Im using Delphi XE5 over Indy and one client is getting Socket Error # 11001 Host not found. The same call on my machine works fine for both SMTP and FTP Ping and nslookup both work on that machine if i enter either the IP or hostname I have…
Dangas56
  • 849
  • 1
  • 8
  • 32
1
vote
0 answers

DNS lookup python socket.getHostbyName vs nslookup

I am having trouble resolving dns lookups in my script. But using the nslookup command in a shell resolves fine for the same entry. Does anyone have an idea why it would behave like that ? The error I am getting is the following: Traceback (most…
Traoré Moussa
  • 433
  • 1
  • 6
  • 22
1
vote
1 answer

Custom Foreach loop nslookup export to csv

I'm new to PowerShell scripting. I am trying to make a script which resolves a list of DNS names to their IPs and outputs them as a CSV file. When a server is unresolvable it should be output to a separate file. Here is my code: $location $location…
Kevin
  • 193
  • 1
  • 4
  • 16
1
vote
1 answer

Continuing the loop

Ok so I have code that is supposed to run through a txt file and ping the Ip's if the ping is equal to 0 its does an 'nslookup' on it and then it's supposed to continue but after it does the first one in the terminal it's left on a > as if waiting…
Cry2Senpai
  • 71
  • 8
1
vote
2 answers

Using nslookup to find domain name and only the domain name

Currently I have a text file with mutiple IP's I am currently attempting to pull only the domain name from the set of information given using nslookup (code below) with open('test.txt','r') as f: for line in f: print…
Cry2Senpai
  • 71
  • 8
1
vote
1 answer

Python script to print nslookup

import os ipRange = [] for i in range(1, 254): ipRange.append('192.168.5' + '.' + str(i)) for e in ipRange: print os.system('nslookup ' + str(e)) This outputs the full output of nslookup for each ip - is there a way to discard the empty…
S F
  • 69
  • 1
  • 5
1
vote
0 answers

Java: Hostname lookup not working with InetAddress & org.xbill.DNS

I have been trying to write code in Java to do a DNS reverse lookup (look up hostname from given IP). I have tried the following ways to do it. InetAddress addr1 = InetAddress.getByName("11.121.5.67"); String host = addr1.getHostName(); byte[]…
1
vote
1 answer

Unable to look up IP address in 64-bit VBA

My base problem is that I have a spreadsheet with 10's of thousands of FQDN (fully qualified domain name) entries that I need to check if the FQDN is a valid DNS entry on the public internet. I am doing a DNS lookup of each FQDN and would like to…
SkiBum
  • 23
  • 1
  • 8
1
vote
1 answer

Extract DNS record (MX) details from name server reply c++

I am trying to get the hostname of the MX record with low priority using the following code, but I am unable to parse the required details (hostname, ttl, priority) from the given nameserver reply. u_char nsbuf[4096], dispbuf[4096]; ns_msg…
fury.slay
  • 1,202
  • 1
  • 15
  • 26
1
vote
1 answer

Amazon SES domain verification always fails

I've been trying for months to verify my domain with Amazon Web Services so that I can use Amazon SES to send emails. Verification fails every time. I've retried about 35 times. Each time it fails. I've added a TXT record to my DNS. It looks…
Mark
  • 4,428
  • 14
  • 60
  • 116
1
vote
1 answer

Batch file for printing out the results of nslookup on a list

I have a list of domain names that I want to ensure have the IP addresses that my records say that they do. can I write a batch file that will take the list, run Nslookup on all the names in it, and then print the results in a .txt? or better yet,…
jokeSlayer94
  • 143
  • 1
  • 9
1
vote
1 answer

How to disable ipv6 adrress resolve in DNS

I want to disable ipv6 resolve. When I do nslookup for host name it is giving 2 ip addresses i want to disable ipv6 address permanently. I'm using im6q sabrelite board yocto build. Linux version is 3.14 nslookup c1457415477.mgr.gcsp.cddbp.net…
kiranjc
  • 41
  • 2
  • 7