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

Implement NSLOOKUP into a program

I need to check if a domain exist in an RPGLE (or CLLE) program. I can use in command line, example: nslookup hostname(google.it) There's a way to use the same command into a RPGLE (or CLLE) program? How can I check the result) Or alternatively is…
Nifriz
  • 1,033
  • 1
  • 10
  • 21
1
vote
1 answer

why server can't find pihole.service.consul: NXDOMAIN and how can I fix this?

I have following configuration for consul. { "service": { "name": "pihole", "Address": "192.168.0.15", "tags": [ "pi" ], "port": 8165, "check": { "args": [ "curl", "192.168.0.15" ], …
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1
vote
2 answers

nslookup and awk get 2nd address

I'm trying to get the address from the below result of my nslookup Here I want to get is the 2nd address which is 10.0.45.45 Server: 10.152.183.10 Address: 10.152.183.10#53 Name: …
Jayson Gonzaga
  • 140
  • 1
  • 4
  • 11
1
vote
1 answer

Spoofing CNAME in nslookup answer (DNS cloaking)

Is there a way to send custom reply to, for example, livejournal's nslookup request with custom CNAME answer? Example: livejournal sends nslookup request type CNAME to site.com; site.com somehow answers only to livejournals request with "CNAME…
Крайст
  • 776
  • 1
  • 9
  • 22
1
vote
3 answers

nslookup/dig/drill commands on a file that contains websites to add ip addresses

UPDATE : Still open for solutions using nslookup without parallel, dig or drill I need to write a script that scans a file containing web page addresses on each line, and adds to these lines the IP address corresponding to the name using nslookup…
JonBjatBun
  • 39
  • 5
1
vote
1 answer

Batch Script to find Domain controller on the network

I am trying to write a batch script to find the domain controller hostname. Based from the following article nslookup set type=all _ldap._tcp.dc._msdcs.domain.name What I would like to try and get working is at the start it prompts you for the…
1
vote
2 answers

How to extract Active domain

Is there any bash command/script in Linux so we can extract the active domains from a long list, example, I have a csv file (domains.csv) there are 55 million domains are listed horizontally, we need only active domains in a csv file (active.csv)…
Priyanka
  • 27
  • 4
1
vote
1 answer

Storing the state of an awk query

thanks very much for looking at my thread. I am looking to make a script that reads in a VERY LARGE list of domains, sees which ones resolve, and then store only the ones that resolved to another file. I currently have this in a script: nslookup <…
p1r473
  • 25
  • 5
1
vote
1 answer

Passing name of server from a list to nslookup with Awk

Backstory: I am making a script to check a blacklist of domains and see which domains are still valid (resolve to an IP) so I can cut out the old non-resolving domains from the list. The list has millions of lines, so I am using awk (instead of a…
p1r473
  • 25
  • 5
1
vote
3 answers

How to get IP address using nslookup and python on Windows

Over the years, there have been some changes in how some functions and commands provide an output. Which is why, it is difficult to follow older tutorials, which sometimes do not conform with the latest revisions to software and its commands. One…
SowingFiber
  • 1,194
  • 1
  • 12
  • 32
1
vote
0 answers

Python: How to print the local DNS Address ONLY?

when I type in nslookup in cmd I get this output: Default Server: my server name. Address: 192.168.2.1 I would like to use Python to output ONLY the DNS address. Just the number. How can I do that? This is what I tried, but it opens up cmd…
NoIdeaJoe
  • 19
  • 5
1
vote
0 answers

DNS SOA type lookup in GoLang

I'm very new to GoLang. So, I'm supposed to do an nslookup of a DNS that I read from a file. When I do nslookup example-dns.com from my terminal, I receive all details such as the server, address and all records associated with that dns. However,…
Saturnian
  • 1,686
  • 6
  • 39
  • 65
1
vote
2 answers

nslookup response is a lot slower compared to Resolve-DnsName cmdlet's response

I have been trying to measure the DNS latency using PowerShell. I want to check the DNS response time and want to skip the local resolver cache, so I used nslookup and it works fine except when I compared the results with Resolve-DnsName cmdlet's…
user6037143
  • 516
  • 5
  • 20
1
vote
1 answer

nslookup using server alternative in python

I'm looking for a python replacement for nslookup. Other sources have pointed me towards socket.getaddrinfo(). However, this does not seem to allow me to specify a server through which to resolve a hostname, which nslookup supports and I…
Daniel Paczuski Bak
  • 3,720
  • 8
  • 32
  • 78
1
vote
1 answer

Extract IPs from multiples websites using bash and awk

I'm looking for the best way to get multiples websites IPs and output them as "domain.com:","1.1.1.1" in order to achieve this I was thinking on using nslookup (not sure if is the best option but I don't want to use ping) Well I was trying something…
pancho
  • 176
  • 1
  • 2
  • 13