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
40
votes
9 answers

python module for nslookup

Is there a python-module that's doing the same stuff as nslookup does? I am planning to use nslookup on digging some information regarding the domain of a URL to be scrapped. I know I can use os.sys to call nslookup but I am just wondering if there…
jaysonpryde
  • 2,733
  • 11
  • 44
  • 61
29
votes
1 answer

nslookup reported "can't resolve '(null)': Name does not resolve" though it successfully resolved the DNS names

I am on ubuntu, and I am running a docker default bridge network. I have containerized versions of zookeeper, kafka, and an app that I wrote that talks to kafka. I do a: docker exec -it /bin/bash Then inside my app's container I run…
smuggledPancakes
  • 9,881
  • 20
  • 74
  • 113
23
votes
5 answers

Why golang Lookup*** function can't provide a server parameter?

For nslookup command, it has nslookup somewhere.com some.dns.server. However, it seems that golang dnsclient only load config from /etc/resolv.conf code here: https://golang.org/src/net/dnsclient_unix.go#L225 Does the golang standard library…
holys
  • 13,869
  • 15
  • 45
  • 50
22
votes
3 answers

Reverse DNS in Ruby?

I'm in an environment with a lot of computers that haven't been properly inventoried. Basically, no one knows which IP goes with which mac address and which hostname. So I wrote the following: # This script goes down the entire IP range and attempts…
garg
  • 1,246
  • 2
  • 16
  • 21
17
votes
3 answers

Resolve hostname in PHP using different name server

How I can resolve hostname to IP address using PHP, but using different nameserver (eg. OpenDNS or Google Public DNS). It not seem that dns_get_record() or gethostbyname() are able to use a different nameserver than one currently set up on the…
Nick
  • 9,962
  • 4
  • 42
  • 80
14
votes
2 answers

Why dig does not resolve K8s service by dns name while nslookup has no problems with it?

Here are steps to reproduce: minikube start kubectl run nginx --image=nginx kubectl expose deployment nginx --port=80 --type=ClusterIP kubectl run -i --tty --rm alpine --image=alpine --restart=Never -- sh apk add --no-cache bind-tools Now let's…
Kirill
  • 6,762
  • 4
  • 51
  • 81
13
votes
8 answers

Reverse DNS lookup in perl

How do I perform a reverse DNS lookup, that is how do I resolve an IP address to its DNS hostname in Perl?
Joakim
  • 11,468
  • 9
  • 44
  • 50
13
votes
6 answers

Most efficient way to programmatically determine if a web domain is available?

I am writing some code to determine whether a network domain is registered. For example, I want to check if "Google123.com" is available. There are at least two ways I can do this programmatically, but I'm not sure which is more valid: A) In…
jm.
  • 23,422
  • 22
  • 79
  • 93
12
votes
3 answers

Kubernetes DNS lookg not working from worker node - connection timed out; no servers could be reached

I have build new Kubernetes cluster v1.20.1 single master and single node with Calico CNI. I deployed the busybox pod in default namespace. # kubectl get pods busybox -o wide NAME READY STATUS RESTARTS AGE IP NODE …
sfgroups
  • 18,151
  • 28
  • 132
  • 204
12
votes
1 answer

How should I interpret a "Can't find..." from nslookup inside a Docker busybox container?

I don't understand the output I'm getting. If I run: docker run --rm busybox nslookup google.com, I'll get: Server: 192.168.65.1 Address: 192.168.65.1:53 Non-authoritative answer: Name: google.com Address: 2a00:1450:4009:806::200e ***…
Daniele Procida
  • 1,477
  • 10
  • 27
12
votes
3 answers

First DNS Lookup always fails

I'm having a very weird problem with a new Windows 10 Pro build using an intel I219-v adapter (integrated into the mobo). Every time a DNS lookup occurs, either in a browser or triggered manually via command prompt, the first request times out and…
11
votes
4 answers

How to perform "nslookup host server"

My C# service needs to periodically poll nslookup host server. Currently it spawns a Process that executes batch script. Due to performance reason I'm considering to do this check using some API. But the problem is, that using, for example,…
Roman
  • 4,531
  • 10
  • 40
  • 69
8
votes
1 answer

Is there an equivalent function of nslookup command in node.js?

Is there an equivalent function of nslookup in node.js? Here's the execution result of nslookup command on my MacBook Pro: > nslookup www.amagicshop.com.tw 8.8.8.8 Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative…
Brian
  • 12,145
  • 20
  • 90
  • 153
8
votes
2 answers

Is there a unix command to retrieve NS records from domain?

I am looking for a way to get the primary and secondary NS records of a given domain name, and the IP addresses associated with them. Now this kind of information is available from websites like intodns.com, but I am working on a huge list of…
Zenet
  • 6,961
  • 13
  • 38
  • 45
7
votes
2 answers

Linux Command for a Raw DNS Response

Does anyone know how to fetch the raw output of a DNS query using a particular linux command? The commands that I am familiar with are: % host % nslookup % dig % whois however, each of these play around with DNS in some form or another, but how can…
matsko
  • 21,895
  • 21
  • 102
  • 144
1
2 3
16 17