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

Why dig command is returning only one IP address of google.com?

As we know google has more than one IP addresses. If we use the website https://toolbox.googleapps.com/apps/dig/#A/google.com@8.8.8.8 it results more than one IP addresses of google. If I run the following command then the scenario is…
my name is GYAN
  • 1,269
  • 13
  • 27
7
votes
3 answers

Capturing nslookup shell output with C#

I have a command-line process I would like to automate and capture in C#. At the command line, I type: nslookup This launches a shell which gives me a > prompt. At the prompt, I then type: ls -a mydomain.local This returns a list of local CNAMEs…
Yes - that Jake.
  • 16,725
  • 14
  • 70
  • 96
7
votes
1 answer

** server can't find hostname.com nxdomain

I am trying to set up an apache web server on my vm and im running into some issues. When I do an 'nslookup' on the hostname of the machine this is what I get: nslookup rhel64.xxxxx.xxxxx.com Server: xxx.xxx.32.1 Address: …
PT_C
  • 1,178
  • 5
  • 24
  • 57
6
votes
3 answers

How to use nslookup in bash to verify is DNS is configured properly?

Mainly I want to detect if DNS is configured properly on a machine by using nslookup. Sadly it seems that nslookup still returns success error codes when it fails to lookup an entry. Also the fact that different queries could return multiple results…
sorin
  • 161,544
  • 178
  • 535
  • 806
5
votes
2 answers

Getting all IP addresses of a hostname

I'm trying to get all the IP addresses for a host. This is the nslookup output: >>nslookup site.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: site.com Address: 1.1.1.1 Name: site.com Address: 2.2.2.2 I…
Navid Zarepak
  • 4,148
  • 1
  • 12
  • 26
5
votes
2 answers

What's the name lookup differences between curl and nslookup

I'm lost when trying to figure out when a DNS query will be timed out. Tried multiple scenarios(on Linux): No name server configured in /etc/resolv.conf ###################### curl…
Xiaoming
  • 599
  • 2
  • 8
  • 17
5
votes
1 answer

Powershell: how to get rid of CMD output while assigning a variable (nslookup)

I want to run nslookup in a powershell script, assigning the output to a string variable I can parse up. I don't want to see echos like "Non-authoritative answer:" in the powershell window from the CMD execution, but everything I have tried to pipe…
TwoRoses
  • 65
  • 1
  • 6
5
votes
1 answer

InetAddress.getByName intermittently fails with System error

I have some code that uses InetAddress.getByName . Intermittently I get a UnknownHostException: java.net.UnknownHostException: google.com: System error at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at…
Louise Miller
  • 3,069
  • 2
  • 12
  • 13
5
votes
4 answers

Getting IP addresses for hostnames using nslookup in Powershell

I am new to Powershell scripting and I need to write one script. I have a list of server hostnames and I need to get IP addresses of those servers and write the results in a file. The hostnames are one column in Excel spreadsheet but I can format…
Ondrej Lebl
  • 51
  • 1
  • 1
  • 2
4
votes
3 answers

My users get "net::err_name_not_resolved"

I did get messages from android phone users that my website is not loading. When an android phone clicks on a link to go to my website it gets the error: net::err_name_not_resolved On computers and iPhones, I don't get the error. When the android…
EnzoTrompeneers
  • 1,031
  • 1
  • 14
  • 30
4
votes
1 answer

DNS resolve failing for specific domains. Domains work with nslookup

What I want to happen: Pass the method a domain as a string and have it return true if the domain resolves. False if it does not. The underlying goal is to see if a domain exists. What happens: Most valid domain strings return true. Some, however,…
Simon
  • 855
  • 9
  • 24
4
votes
2 answers

Checking for an MX record with getmxrr() or dns_get_record() returns incorrect information

I am currently attempting to check the validity of an email address by first checking if an MX record exists, using getmxrr() or dns_get_record() with PHP 7 on a DigitalOcean droplet. In my example (which returns the incorrect response), I am…
dvyio
  • 339
  • 1
  • 7
  • 20
4
votes
0 answers

getaddrinfo and gethostbyname hangs the system

I am working on an eCos project and I have a big problem. For some reason getaddrinfo and gethostbyname seem to hang the whole system from time to time in the production environment. I have read that this is also an issue in linux if the DNS does…
www.jensolsson.se
  • 3,023
  • 2
  • 35
  • 65
4
votes
1 answer

[System.Net.Dns]::GetHostEntry("ip") returns host entry of another server

Today I've recognized strange behaviour of our DNS-System, if I make a DNS reverse lookup for the server srvdefiler1 with System.net.dns.gethostentry("10.10.1.54") (done within powershell if it matters, .Net 4.5) it returns following…
fadanner
  • 158
  • 1
  • 8
4
votes
8 answers

Nslookup or dig in Google App Script

Is there any way to run an nslookup / dig in Google App Script? I m looking to get the results of this command in a Google Spreadsheet. Thanks
Yannis
  • 6,047
  • 5
  • 43
  • 62
1
2
3
16 17