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

How to I make a script that does nslookup -q=ns for multiple websites and exports the results to a file

I need to create a script that does outputs the results of nslookup -q=ns for multiple websites into a single file. I know how to make it do so for one webiste, it's just "nslookup -q=ns stackoverflow.com". But how do I do this with multiple…
user2054281
1
vote
0 answers

PowerShell, discover network information (hostnames + IP) and construct network configuration scripts

I would like my Windows Sandbox to automatically find the ip/name of every host on my home network and so automatically populate my C:\Windows\system32\drivers\etc\hosts and create a helpler script that will connect to the shares on those hosts.…
YorSubs
  • 3,194
  • 7
  • 37
  • 60
1
vote
1 answer

nslookup return different values

I have the following situation about dkim records I've added som dkim records (CNAME) for aws domain validation. When performing nslookup mydkimhost I receive server can't find host:NXDOMAIN But if I type nslookup -q=CNAME mydkimhost the value of my…
Van Darth Vadden
  • 561
  • 1
  • 5
  • 11
1
vote
1 answer

DNS request with scapy (Python)

I wrote a code that creates a dns packet and sends it. The packet simulates the nslookup -type=soa facebook.com 8.8.8.8 command for example. But for some reason I get a different answer from what the 'nslookup' command returns. my code dns server…
1
vote
1 answer

Unable to export the data to CSV or Excel

I have written a script to check the nslookup for each server and export the details to Excel, but my script is looking but I am not able to export the output when I export I a getting empty data. Please help me to export the data to Excel CODE ##…
chandu
  • 35
  • 3
  • 16
1
vote
2 answers

nslookup - return only the IP address of host

I'd like to be able to return only the IP from a nslookup command. Currently if I execute: >nslookup foo21.bar.local it will return something like: Server: 11.13.5.134 Address: 11.13.5.134#53 Name: foo21.bar.local Address: 11.13.35.312 I…
Timothy Clotworthy
  • 1,960
  • 2
  • 19
  • 42
1
vote
1 answer

DNS problem, whois shows new servers, dig and soa nslookup show old older dns

I recently began migrating an old site to Drupal, and the hosting service I was using was really cheap and wouldn't have worked with all the modules I installed. I already hired a hosting account at a new (Drupal friendly) service and changed my DNS…
la_f0ka
  • 1,773
  • 3
  • 23
  • 44
1
vote
1 answer

What is the nslookup equivalent in C#?

I want to get the aliases that is returned by nslookup as below: F:\>nslookup maans20210630125234.sandbox.operations.test.dynamics.com Server: UnKnown Address: 2001:4898::1050:1050 Non-authoritative answer: Name: …
1
vote
1 answer

What is the meaning of hash symbol followed by number after IP address when I use nslookup?

When I type command: $ nslookup www.google.com The results are: Server: XXX.XXX.XX.X Address: XXX.XXX.XX.X#NN Non-authoritative answer: .... What I want to ask is what is the meaning of the number after the hash symbol and the…
alifcsai
  • 23
  • 5
1
vote
1 answer

After DNS A record change, dig and nslookup showing different results for a the same domain name on Mac OS X

After changing the DNS A record of a hostname, dig and nslookup are showing different results. While dig is showing the correct IP, nslookup is still showing the old IP. I am on macos 11.2.3 The nslookup output for my domain {{domainname}} is (note…
Ouss
  • 2,912
  • 2
  • 25
  • 45
1
vote
1 answer

How get the canonical name with nslookup as an authoritative answer?

I need to find the canonical name of three websites using nslookup. When I do nslookup -a google.es 8.8.8.8 the answer is non authoritative but I need an authoritative answer. What can I do to have the canonical name of "google.es", "upc.edu" and…
Ana García
  • 23
  • 2
  • 6
1
vote
1 answer

coredns doesnt give IP but just name

By running a dig command for a service in my kubernetes cluster, coredns just gives service name but not the IP. Does anyone know why this is happening?
1
vote
2 answers

DNS in K8S pod: tcpdump shows bad udp checksum but nslookup still works and UDP error counters don't increment

I have a K8S pod. Inside pod, I do dns lookup using nslookup. It works fine. But when I do tcpdump on pod interface (eth0), it clearly shows received dns response has bad udp checksum. I checked with netstat the udp counters, but I dont see the…
quandrione
  • 61
  • 1
  • 4
1
vote
1 answer

Setting up Private DNS in google cloud

2 years back Google introudced private DNS which is very important for internal domains communication. I setup a private dns to learn about DNS using below documentation…
Learner
  • 1,544
  • 8
  • 29
  • 55
1
vote
1 answer

Getting EKS Service IP Address from DNS using nslookup using commandline and grep

I am having a question on how to retrieve the IP address of an EKS Service using the commandline using grep. This is the nslookup command I used, and well it shows me the key Address: and the IPs but I only need one specific IP in that index and…
Benny
  • 839
  • 16
  • 32