Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [nslookup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

curl is not able to resolve host by default, --ipv4 switch works

I have a Linux Alpine (v3.18.6) container running on AKS. The curl command inside that container is not able to resolve a private DNS host. Also, nslookup throws SERVFAIL. However, when I provide --...
Snehasish Karmakar's user avatar
0 votes
0 answers
19 views

Nslookup and finger command

Usually when I try finger on nslookup of Linux version said "still not implemented" Finally I found a system which implement the finger nslookup command, but give me this error nslookup ...
elbarna's user avatar
  • 12.8k
0 votes
0 answers
178 views

connection timed out; no servers could be reached nslookup

nslookup 192.168.56.81 ;; connection timed out; trying next origin ;; connection timed out; no servers could be reached There is setting in hostfile and resolv.conf . Ip is pinging. /etc/sysctl.conf ...
Dinesh vishe's user avatar
0 votes
0 answers
1k views

Nslookup resolves server address but gives server can't find SERVFAIL error at the same time

In our office network if I run nslookup dl.min.io I get a response with both the address and an error: Server: <server IP> Address: <server IP>#53 Non-authoritative answer: Name: ...
Scott Tiger's user avatar
0 votes
1 answer
184 views

nslookup and IP forwarding with multiple interfaces fails sometimes

I have an embedded system with two ethernet ports. These two ports are connected to two different ethernet ports on a linux box. The linux box has another third port which is connected to the WAN. The ...
Malli's user avatar
  • 1
0 votes
2 answers
3k views

Why would nslookup return a response, then timeout?

Here's what my nslookup is doing: ubuntu@ca:~$ time nslookup focal-250 Server: 127.0.0.53 Address: 127.0.0.53#53 Non-authoritative answer: Name: focal-250.test Address: 128.8.8.187 ;; ...
Brent Baccala's user avatar
-2 votes
2 answers
107 views

Why my site can't be found? CNAME points to AWS ELB

My nslookup nslookup richardrublev.xyz Server: 127.0.0.53 Address: 127.0.0.53#53 Non-authoritative answer: *** Can't find richardrublev.xyz: No answer On Advanced DNS,I set the CNAME I ...
Richard Rublev's user avatar
-1 votes
1 answer
4k views

nslookup knows while ping doesn't know; how is this possible?

How is this possible: % nslookup heartbeat Server: 192.168.10.1 Address: 192.168.10.1#53 Name: heartbeat.mydomain.local.lan Address: 192.168.33.6 % ping heartbeat.mydomain.local.lan ping: ...
Dims's user avatar
  • 3,255
1 vote
0 answers
45 views

Is there a streaming endpoint for DNS lookup / IP metadata?

I would like to know all changes of domain names / metadata linked to a given (wide) range of IPs. For now, I execute a batch of scripts that extract regularly the domain name / metadata behind each ...
Olscream's user avatar
1 vote
1 answer
703 views

cannot access github.com

I cannot nslookup github: nslookup github 8.8.8.8 ;; connection timed out; no servers could be reached nslookup github.com ;; connection timed out; no servers could be reached nb: default ns server =...
achille's user avatar
  • 203
3 votes
1 answer
512 views

What is meant by "OS resolver libraries" that are used by the "dig" command?

I know that dig queries the DNS server in the /etc/resolv.conf but I read that the difference between dig and nslookup is that dig uses OS resolver libraries. But what are the OS resolver libraries?
user3737708's user avatar
0 votes
2 answers
368 views

Why does nslookup script give different results?

I try to use name resolution and get IP address of a web site. I used nslookup command and use 6'th line of its output. Because I noticed that output of nslookup contains IP address(in IPv4) in 6'th ...
user avatar
0 votes
1 answer
1k views

nslookup/dig not appending domain suffix for SRV searches

I am trying to figure out why doing a SRV record search on Ubuntu will not work without specifically including the FQDN on the end of the address. I have the domain name listed in my resolv.conf ...
tczx3's user avatar
  • 1
-1 votes
1 answer
471 views

Proper way to find the IP address of a website in linux

I am trying to find the IP address of this website ashesworkshop.org using kali linux. I have tried the following commands. dig ashesworkshop.org which returns me an error ; <<>> DiG 9.16....
Turing101's user avatar
  • 153
2 votes
1 answer
4k views

What is the difference between ping and nslookup in name resolution?

I am trying to understand the differences in the behavior of nslookup and ping when resolving hostnames to IP addresses. My confusion is summarized by this snippet from my terminal: lllamnyp@lllamnyp:~...
LLlAMnYP's user avatar
  • 121
0 votes
1 answer
1k views

Dig connection timed out while Ping and nslookup work fine

Whenever I run the command dig, the connection times out and no servers are reached.Specifying the DNS server to query makes no difference. Nslookup and Ping on the other hand seem to be working just ...
user444927's user avatar
-1 votes
1 answer
322 views

linux + test dns resolving of hosts/ip's but without to wait a long time

we want to test , fast as possible the hosts/ip's resolving for example when we do the following host -a linux1 Trying "linux1.df.com" ;; connection timed out; no servers could be reached ...
yael's user avatar
  • 13.3k
0 votes
1 answer
746 views

/etc/resolv.conf on CentOS7 doesn't seem to honor options

# uname -a Linux myserver 3.10.0-1062.18.1.el7.x86_64 #1 SMP Tue Mar 17 23:49:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux # cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) # cat /etc/...
Ankur Agarwal's user avatar
1 vote
1 answer
2k views

Reverse Lookups to Local DNS Server Failing on Ubuntu 18.04

On Ubuntu 16.04 REVERSE lookups to a local DNS/DHCP bind9 server on the local network are SUCCESSFUL, while on the other hand, on Ubuntu 18.04 (and higher) the REVERSE lookups FAIL. All systems are ...
gstanden's user avatar
2 votes
0 answers
126 views

Inconsistent nslookup behaviour

When I run nslookup google.com 192.168.190.81 it works. tcpdump -n -vv output during above command is: 18:12:24.815483 IP (tos 0x0, ttl 64, id 8975, offset 0, flags [none], proto UDP (17), length 56) ...
Eli Finkel's user avatar
0 votes
2 answers
3k views

I can not install nslookup in my CentOS server

I can not install nslookup in my CentOS 7.2: yum install nslookup [root@localhost network-scripts]# yum install -y nslookup added plugin:fastestmirror Loading mirror speeds from cached hostfile * ...
s-n-2's user avatar
  • 163
0 votes
1 answer
160 views

Performing forward lookup and reserve lookup

How exactly do I perform forward and reserve lookups between a data server and a client? Specifically this is between a vcenter and a virtual server As far as I'm aware, I perform: root@vcenter~/...
Mizole Ni's user avatar
  • 169
0 votes
2 answers
4k views

Look Up IPs From Text File, Generate Another Text File With Specific Formatting

I'd like a way of looking up all the domains in a text file (one domain per line) and generating another text file with the output as the IP address, a space, the domain name, a space and then the ...
Eric Bradshaw's user avatar
3 votes
1 answer
2k views

DNS issues on a single Wifi - Linux Mint 19.1

I'm having DNS problems with one WiFi network which I've been using for a long time. I tried to do an hotspot with my phone and everything worked as normal, so the issue is only on that network. ping ...
Mabri's user avatar
  • 111
16 votes
3 answers
6k views

How can it be that ssh somename works, while nslookup somename does not?

How to know the IP address of some host somename I can ssh to? If I do nslookup on this host it says "no answer". How can ssh resolve it's name then? Neither /etc/hosts nor .ssh/config explanation ...
Dims's user avatar
  • 3,255
3 votes
1 answer
9k views

nslookup: return only IP address

My research indicated nslookup was never really intended for scripted use: use dig instead, which with the +short option produces machine-readable output according to the query parameters. dig +...
gatorback's user avatar
  • 1,384
1 vote
1 answer
296 views

Nslookup cannot find name servers without www

Our site is responding to nslookup if it is fully written. nslookup www.example.com - it responds and shows name servers. But if we write without www, like nslookup example.com - it cannot find ...
it dev's user avatar
  • 315
3 votes
1 answer
12k views

Ping 'Name or service not known' how can I clear cache

For several days now, after several reboots I still am faced with the issue of my CentOS 7 machine not being able to ping my domain. [root@ip126 ~]# ping sub.mydomain.eu ping: sub.mydomain.eu: Name ...
masterq's user avatar
  • 171
2 votes
1 answer
2k views

nslookup awk to a file showing "answer"

I am currently running a script that uses nslookup on a bunch of hosts and then uses awk to print desired lines into a table. I am printing one line to file1 and another to file2, then using paste ...
mitchelwith1el's user avatar
0 votes
3 answers
4k views

Using Awk to print desired lines of nslookup

I'm looking to print the name and IP that results from an nslookup so I can output them to a file. When I run an nslookup on a host, I get a result like this: Server: 10.10.10.10 Address: 10.10.10....
mitchelwith1el's user avatar
0 votes
0 answers
785 views

connection refused ssh and dns

I cannot to ssh or nslookup to this machine vm1 that has the ip 192.168.56.2 from ferrari which has the ip 172.45.20.3. I do not know why, but I am able to ssh to the 192.168.56.2 from my host machine....
Ovie's user avatar
  • 47
4 votes
2 answers
8k views

Why does nslookup fail for DNS records set to a private address?

Setup On some networks I'm able to use nslookup to resolve a domain name that is pointed to a private ip address: @work> nslookup my192.ddns.net Server: 10.1.2.3 Address: 10.1.2.3#53 Non-...
cwd's user avatar
  • 45.6k
0 votes
0 answers
891 views

how to do domain ip lookup in debian

I can use a web-service to lookup the IP Address allotted to a website and then do a reverse lookup to get more info. about range of the IP Address to whom it was allocated to. But from what brief ...
shirish's user avatar
  • 12.5k
3 votes
1 answer
12k views

How does hostname resolution / lookup happen in Linux? [closed]

I am new to Linux and need to know how the nslookup command resolves hostnames. What are the configuration files that are used by the nslookup command? I need to know the exhaustive list of files ...
novice_developer's user avatar
1 vote
1 answer
1k views

Why does ping resolve to a different address than traceroute? and lynx?

We have a managed server with centos, recently it starts showing strange behavior: root@server [/tmp]# ping www.google.com PING www.google.com (172.217.8.196) 56(84) bytes of data. 64 bytes from ...
Ralf Jahr's user avatar
  • 113
1 vote
1 answer
3k views

Resolve local host without any DNS server?

Is there any way to resolve local host without any DNS server? Below is my config # ifconfig eth4 Link encap:Ethernet HWaddr 00:50:56:9C:4D:2F inet6 addr: 2004:c0a8:5b01:1:250:56ff:...
saravanakumar's user avatar
4 votes
2 answers
3k views

Universal way to check if "docker.for.mac.localhost" DNS name is resolvable?

Preface I want to write a universal shell-script which will add a proper IP address of docker host machine to /etc/hosts inside of container. You will probably advice me to put the service I want to ...
Kirill's user avatar
  • 995
6 votes
2 answers
6k views

dig / nslookup cannot resolve, but ping can

I'm experimenting with a Win10 IoT board that runs a web interface on minwinpc.local. This works fine in the browser, and also when I use ping. However, when I use dig or nslookup, I cannot get ...
Etan's user avatar
  • 183
1 vote
1 answer
12k views

CentOS7 unable to resolve nslookup for short hostname

I tried setting up a DNS Lookup on CentOS 7 (in a Virtual Box VM), which works for FQDN on the same virtual machine as the DNS. However when I try to resolve the short hostname, it fails. I have seen ...
WrijuB's user avatar
  • 13
1 vote
2 answers
368 views

Fedora VMs: nslookup works, ping does not when disconnected from Internet [closed]

I need your help in understanding why I'm facing this strange problem. So I'll get to the set up: Windows 10 laptop as a host let's call this host win10. Vmware installed on win10 two Linux VMs on ...
admdev's user avatar
  • 111
0 votes
1 answer
784 views

DNS caching problem

I have a DNS server, where I put A record with TTL set to 0: example.host.com <some.ip.addr.one> Then I do dig example.host.com And get specified ip address. Later I change update record ...
Rahul's user avatar
  • 272
0 votes
1 answer
619 views

How to unescape semicolon output in double quoted dig/nslookup output?

When querying for a TXT DNS record that contains a semicolon (;) using both dig and nslookup version 9.8.3-P1, its output of the text record is in double quoted output format: Non-authoritative ...
Pro Backup's user avatar
  • 4,944
1 vote
0 answers
1k views

Can't ping 8.8.8.8 from router, but can ping it from LAN?

I have pfSense router with 2 WANs. I noticed, that if one WAN is down, then I can't ping 8.8.8.8 from router. Simultaneously, I am able to ping this address from within LAN, i.e. it can pass through ...
Dims's user avatar
  • 3,255
0 votes
2 answers
316 views

How to force machines connected to an AP to use the local AP DNS?

I am sharing documents by running a hotspot in conjonction to dnsmasq that redirect all name queries to an IP <IP> where the documents can be found create_ap wlan0 wlan0 HereAreTheDocuments ...
user123456's user avatar
  • 5,048
1 vote
1 answer
711 views

Nslookup doesn't show full info on CentOS 7 docker image

I'm using https://hub.docker.com/_/centos/ CentOS 7 docker image. I created service with 3 replicas inside cluster and i'd like to query internal docker dns. For BusyBox image nslookup works exactly ...
login's user avatar
  • 275
0 votes
1 answer
137 views

Understand the nslookup output.

nslookup returns the following output on mac: www.yahoo.com -> 46.228.47.115, 46.228.47.114, 2a00:1288:110:2::4001 As I understand following IPs in DNS map to www.yahoo.com: www.yahoo.com ->...
Zubair's user avatar
  • 111
15 votes
5 answers
18k views

Resolving hostname takes 5 seconds

I've a master bind9 DNS server and 2 slave servers running on IPv4 (Debian Jessie), using /etc/bind/named.conf: listen-on-v6 { none; }; When I try to connect from different server(s) each connection ...
Tombart's user avatar
  • 2,870
0 votes
1 answer
494 views

Determining Domain Base Name from Nslookup Results [closed]

I am trying to search all IP addresses that connected to my server and want to find abusive servers from nslookup results. nslookup 31.204.150.10 | grep "in-addr" Some example results: 209.190.54....
NecNecco's user avatar
  • 701
6 votes
1 answer
4k views

dig does not resolve unqualified domain names, but nslookup does

I have a lab set up with DNS running on a CentOS7 server (dns01.local.lab). The local.lab domain is defined in named.conf: zone "local.lab" IN { type master; file "local.lab.zone"; allow-...
theillien's user avatar
  • 1,308
1 vote
1 answer
2k views

"crypto failure" error when running various commands

I'm finding that a few commands (for now dig and nslookup) that fail no matter what with the following output: 19-Jan-2016 15:01:50.219 ENGINE_by_id failed (crypto failure) 19-Jan-2016 15:01:50.219 ...
Naps62's user avatar
  • 113