Questions tagged [dig]

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

213 questions
1
vote
0 answers

How can I create a script that will verify dns server are synced?

I would like to create a script that verifies if all the DNS servers that are responsible for resolving a website are synced. For example, when I execute dig ns walla.co.il +short I get the following: a18-65.akam.net. a11-64.akam.net.…
Etr
  • 11
  • 1
1
vote
1 answer

Do all DNS root servers and top-level-domain servers (TLD) support DNSSEC?

I know that DNSSEC has been widely implemented since 2010. For Authority name servers, it depends on the admin whether he wants to support DNSSEC or not. However, I would like to know whether or not all root name servers, and all TLD servers support…
weefwefwqg3
  • 961
  • 10
  • 23
1
vote
0 answers

Python weird circumflex (^) issue in NAPTR query

I'm using Python2 to implement a server which provides NAPTR DNS answers using dnslib. The forged answers are in the following format: 0.0.0.0.0.0.0.e164.arpa. 60 IN NAPTR 20 20 "u" "SIP+E2U" "!^.*$!SIP:0000@whatever.0.0.e164!" . I use dig in…
Andrea
  • 53
  • 1
  • 6
1
vote
1 answer

How to nest bash command output into an array inline?

Note - this is not a duplicate! There are other questions covering converting bash output to a bash array - but none of them do it inline. The reason you need inline is because of until. I'm trying to write an until command that parses the port…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
1
vote
1 answer

Python - dig ANY equivalent with scapy module

I want to use the python module scapy to perform an equivalent command of dig ANY google.com @8.8.4.4 +notcp I've made a simple example code: from scapy.all import * a =…
vP3nguin
  • 320
  • 6
  • 18
1
vote
1 answer

how to use python to dig cname with @

I found this bit of code: 1 import dns.resolver 2 answer=dns.resolver.query("google.com", "A") 3 for data in answer: 4 print data.address And it works great but what i'm looking to do is this : dig +noall +answer google.com…
chowpay
  • 1,515
  • 6
  • 22
  • 44
1
vote
1 answer

Shell : Add input lines subset to prefix dig output

At present,I get NS(Name Server) record for a list of domains in a loop fashion. #ns_check.sh for i in $(cat Input.txt);do dig +short NS $i;done Input file has only domains. #Input.txt example.com hello.com blah.com I get output as, #Out.txt …
Arun
  • 1,160
  • 3
  • 17
  • 33
1
vote
1 answer

How to query authoritative name server to side-step propagation times?

I have a domain with 123-reg.co.uk and I've created a TXT record: I have tried to verify it has been applied by using both the dig and host shell commands, but it appears the TXT record isn't being found. For example... host -t txt…
Integralist
  • 5,899
  • 5
  • 25
  • 42
1
vote
1 answer

Convenient method to collect the original TTL values of DNS A records set by zone

To avoid the cached TTL values, the way I used to do is to collect the authoritative DNS servers of one domain and issue the queries directly to the ADNS servers by using the @global-server option of dig. However, currently I need to process…
haos
  • 25
  • 3
1
vote
1 answer

How to use dig command of bulk/batch lookups to read hostnames from a text file?

I have a text file with 1.txt with the following set of…
Arun
  • 1,160
  • 3
  • 17
  • 33
1
vote
1 answer

How can I get all of the domains associated with a given ip address using Unix commands or php?

I'm trying to get all of the domains associated with a given ip address using Unix commands or php. I've tried dig or nslookup but they give a hostname but not all the domains. If you enter a given ip into senderscore.org it will give a report with…
1
vote
8 answers

Internal DNS configuration woes

Alright, I am going to state up front that this question may be too involved (amount of detail not complexity) for this medium. But I figured this was the best place to start. I am attempting to setup a proof of concept project and my BIND…
JT.
  • 131
  • 1
  • 9
1
vote
4 answers

Algorithm for sorting response in a round-robin DNS configuration

I'm trying to implement a sorting algorithm to ensure my DNS library always works with an ordered list of DNS records, even if the response comes from a Round-Robin configuration. Let's take the following two responses. First. $ dig google.com A ;…
Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
1
vote
3 answers

dig nameserver domain | $variable doesn't work

What am I doing wrong? This works: ns="ns.nameserver.co.uk" d="domain.co.uk" dig @$ns $d A | grep $d However using just a variable after pipe does not (it hangs): ns="ns.nameserver.co.uk" d="domain.co.uk" g=$(grep $d | grep -v "DiG") dig @$ns $d A…
Zippyduda
  • 107
  • 2
  • 7
  • 19
1
vote
2 answers

A script to show me an IP and ns[1,2].* on the same line

I have all the IPs that I want to dig +trace -x in a file called 'ips'. I want to only see the ns1 (and/or) ns2 records of the IP and and have the IP and the ns1 or ns2 record output on the same line, like so: 1 - $IP - $NS 2 - $IP - $NS etc. Right…