Questions tagged [dig]

dig performs DNS lookups and displays records matching the specified IP address or domain name.

213 questions
4
votes
1 answer

Is there any use cases where other DNS classes are useful apart INTERNET?

IN(ternet) class is the default one. I know another useful one, CHAOS : censurfridns : % dig @91.239.100.100 version.bind TXT CHAOS +short "9.11.4-P2+dampening" Are the other ones have a use case ? CS aka CSNET class (Obsolete) HS aka Hesiod [Dyer…
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
4
votes
2 answers

querying against a particular dns server in java

I'm trying to query again a particular dns server both in linux shell using digg and using Java. The dig command works. but the java way doesn't. what's wrong? dig @dns.nic.it test.it ;; QUESTION SECTION: ;test.it. IN A ;; AUTHORITY…
user121196
  • 30,032
  • 57
  • 148
  • 198
3
votes
1 answer

Determining if some dig answer is authoritative or not

I'm being asked to determine whether this dig answer is authoritative or not. I'd say yes, but I am not too keen on that. The rationale behind believing it is indeed authoritative is that the AUTHORITATIVE SECTION contains two addresses, that from…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
3
votes
2 answers

How does DIG utility work in FreeBSD and BIND?

I want to know how does the DIG (Domain Information Groper) command really works when it comes to code and implementation. I mean when we enter a DIG command, which part of the code in FreeBSD or BIND hits first. Currently, I see that when I hit…
user3552519
  • 401
  • 4
  • 11
3
votes
1 answer

bash if invalid arithmetic operator

value1=ns1.abc.nl. value2=ns2.abc.nl. value3=ns3.abc.nl. for domains in $(cat /home/carlito/Desktop/output.txt) do for nameserver in $(dig +short NS $domains) do if [[ ( $nameserver -eq $value1 ) || (…
Mrc
  • 43
  • 4
3
votes
2 answers

How to list all DNS records including DANE TLSA

I would like to list all/any DNS records including the DANE TLSA. With dig mailbox.org ANY I get all records including DNSSEC etc. but nothing about DANE. Why? With dig _443._tcp.mailbox.org. ANY I get the DANE TLSA records. I've read the…
FelixF
  • 31
  • 1
  • 2
3
votes
1 answer

Why is the Wireshark not detecting DNS packet?

i'm simulating a simple DNS Server in JAVA (using UDP). I've done DNS Request parsing and sending back response to the client. i'm using DIG command in shell for testing. i've this problem here : In wireshark, when i start monitoring packets on…
Adeel Ahmad
  • 990
  • 8
  • 22
3
votes
4 answers

How to fix a dig command with status: REFUSED?

I need help fixing a status refused. I had a look at the named.conf and everything looks ok. I even changed allow-query to any, it used to be localhost. dig xxx.com @ns1.xxx.com ; <<>> DiG 9.8.3-P1 <<>> xxx.com @ns1.xxx.com ;; global options:…
orbitory
  • 1,090
  • 5
  • 16
  • 40
3
votes
1 answer

How to include dig lookup in awk?

I have an awk command to extract information from mount points (see the accepted answer in How to extract NFS information from mount on Linux and Solaris?): awk -F'[: ]' '{if(/^\//)print $3,$4,$1;else print $1,$2,$4} I would like to include a dig…
Florian Feldhaus
  • 5,567
  • 2
  • 38
  • 46
3
votes
3 answers

Why does my Perl backticks complain "sh: line 1: any: command not found"?

I've never programmed before, but needed to write a very simple webapp for work. I'm trying to get this dig query to work: dig @8.8.8.8 +nocomments +nostats +noquestion +nocmd google.com any With this bit of perl: $dig = `/usr/bin/dig \@8.8.8.8…
scraft3613
  • 247
  • 4
  • 9
2
votes
1 answer

Storing dig output in array

I have this MX output in $ip: 10 ASPMX2.GOOGLEMAIL.COM. 10 ASPMX3.GOOGLEMAIL.COM. 1 ASPMX.L.GOOGLE.COM. 5 ALT1.ASPMX.L.GOOGLE.COM. 5 ALT2.ASPMX.L.GOOGLE.COM. The number is the priority and the subdomain is the mail server. How could I stored them…
sg552
  • 1,521
  • 6
  • 32
  • 59
2
votes
2 answers

Ansible - How to 'wait_for' DNS to be available or How using lookup('dig') with 'until'

I made something that is working but I look for something more 'elegant' ;) - name: Wait for DNS propagation ansible.builtin.shell: cmd: host "{{ vm_fqdn }}" register: dns_result until: dns_result.rc == 0 retries: 30 delay: 10 But…
LeXaNZ
  • 35
  • 5
2
votes
1 answer

Why I can't see the CNAME record of a specific domain?

why when I want to see which CNAMES has a specific domain I can't see them using dig/nslookup? nslookup -type=any google.com Are CNAMES protected against public petitions? Output from command: ;; Truncated, retrying in TCP mode. Server: …
Gonzalo
  • 353
  • 2
  • 16
2
votes
2 answers

Getting white space between the one TXT records

I have updated the TXT (SPF) records in my domain hosted DNS without the space. I have tried to check the updated the TXT record in the linux terminal using the dig and host commands, but I'm seeing extra white space in the updated record. For…
1 2
3
14 15