dig performs DNS lookups and displays records matching the specified IP address or domain name.
Questions tagged [dig]
213 questions
0
votes
3 answers
Shell Read File Line by Line Issue
Let's say i have a file(Input.txt) with some following dig commands.
dig NS google.com
dig NS box.com
dig NS dropbox.com
dig NS cnn.com
dig NS bbc.co.uk
I want to execute the dig commands from the file only and which has to be read line by…

Arun
- 1,160
- 3
- 17
- 33
0
votes
1 answer
Consul configuration on multiple node
In consul documentation it says that the service configuration files should be stored in /etc/consul.d/ directory.
I am running a 3 nodes cluster, do I have to cpy the consul.d on each node or will the sync will be done inside the cluster ?

Dimitri Kopriwa
- 13,139
- 27
- 98
- 204
0
votes
1 answer
Script To Look Up Nameservers On Multiple Domains
I am working on migrating a customer's WHM / cPanel account to a new server, however he has many, many sites hosted on the server that I need to retrieve their nameservers.
I'd like to create a bash script that parses a file (with each domain on a…

amy
- 185
- 1
- 3
- 13
0
votes
2 answers
With the dig utility, it inserts spaces into DS results
dig -v
DiG 9.9.4-RedHat-9.9.4-18.el7_1.1
That's the version of dig. When I use it to query DS information, it inserts a space into the digest result for type 2 digests:
dig DS domblogger.net. +short
2085 7 2…

Alice Wonder
- 896
- 2
- 9
- 17
0
votes
0 answers
shell_exec('dig ~') returns null, but shell_exec('whoami') does not
I am trying to return dig output to html using PhP but my
$output = shell_exec('dig txt 48.60.191.107.query.senderbase.org');
echo '
$output'; command comes up NULL. as I test I tried 'whoami' and it returned www which is correct. How do…

mine
- 235
- 2
- 10
0
votes
1 answer
Dig answer status: REFUSED from secondary server, primary is fine
I have 2 debian 7 VPS both running a few services, with ISPConfig running on one of them to manage both.
If I log into my primary server (ns1.example.com) and I do:
DiG @ns1.example.com any example.com
DiG @ns2.example.com any example.com
ns1…
user3919287
0
votes
1 answer
Batchfile: cmd.exe closes if variable has semicolon?
Here is a part of my batch...
for /f "delims=" %%i in ('C:\pathto\dig.exe www.example.com @8.8.8.8 +short') do set RIP=%%i
If %RIP%==93.184.216.119 (
ECHO - PASS >> results-file.txt
) else (
ECHO - FAIL >> results-file.txt
)
...this works fine…

notAduck
- 190
- 1
- 3
- 13
0
votes
2 answers
Use linux Dig command to find the full ip address range of a domain?
I need to find all IP addresses of certain websites (e.g. netflix.com). However, I want to use the Dig command but when I do something like
$ dig TXT +short netflix.com
and gives me the following data. First, what does this mean. I have all of…

calengineer
- 21
- 1
- 5
0
votes
1 answer
Piping IP address from dig to whois
I want to get the IP address of a domain name with dig and then perform a whois lookup on that IP address.
I tried this:
dig domain.dk +short | whois

emilstahl
- 13
- 1
- 3
0
votes
1 answer
dig "hostname_1" @"IP" command
I was told to execute the command: dig "hostname_1" @"IP".
I don't know what it is for, any idea? and the meaning of "@IP"?
Another question, the response has the field:
;;AUTHORITY SECTION:
"hostname_1" 1200 IN NS "hostname_2"
"hostname_1" 1200…

user3255242
- 3
- 1
0
votes
0 answers
DNS-Python specific nameserver
i'm trying to figure out, how i can do the dig command
dig ns example.com @8.8.8.8 # example
in dnspython..
what I already tried is this:
res = dns.resolver.Resolver() # also tried with configure=False
res.nameservers =…

Jonas Metzener
- 133
- 1
- 8
0
votes
1 answer
Couple of Doubts on Using Dig
I'm trying to solve some exercises on using Dig and I'm getting allot of doubts.
- When I do: dig +multiline www.twitter.com how do I know if the answer I got came from a authoritative server, is there anyway of knowing this?
- When I repeatedly do:…

Niammi
- 76
- 1
- 7
0
votes
2 answers
python regex doesn't match dig output
I'm trying to parse some dig output (yes I know about dnspython but it doesn't satisfy my requirements) and have a problem to find a matching regex for my usecase.
I'm trying to find all lines from the dig output with IN and NS in them, and example…

Momo
- 331
- 1
- 3
- 9
0
votes
1 answer
Use dig to detect an eventual CDM use
How can I check with a Digg command if a website is using CDN ? For exemple if I use this website, http://www.cdnplanet.com/tools/cdnfinder/#site:http://www.spiegel.de he tell me that the website is using Akamai . But with dig command I can not see…

user567
- 3,712
- 9
- 47
- 80
0
votes
1 answer
Command dig to resolve network issues
I am downloading a font resource from an external font loader. However, it is taking a long time to download. I am in contact with a member of the support team who has asked me to provide him with the output of dig resource.com to provide him with…

Dude
- 193
- 1
- 2
- 9