Questions tagged [dig]

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

213 questions
2
votes
1 answer

Parse dig output export csv

using a dig command in a shell script and want to output into csv format flags and authority section dig @ns1.hosangit.com djzah.com +noall +authority +comments output ; <<>> DiG 9.8.3-P1 <<>> @ns1.hosangit.com djzah.com +noall +authority…
user3666682
  • 23
  • 1
  • 3
2
votes
1 answer

Does BIND 9.9 show wrong number of ADDITIONAL SECTION?

I use BIND 9.9.4 and see the following issue. The dig command shows us there is 2 records in the ADDITIONAL section: ADDITIONAL: 2 But it only shows us 1 record actually in the response: ;; ADDITIONAL SECTION: dns1.example.net. 3600 IN A …
Tuan
  • 2,303
  • 2
  • 25
  • 37
2
votes
2 answers

Objective-C: DNS TXT Record

I've been searching for a while without any success, how am I supposed to get a DNS TXT record for a domain in Objective-C? My goal is to get the same output as: dig -t txt google.com +short PS: No NSTask/pipping please! (I'm currently doing that…
TCB13
  • 3,067
  • 2
  • 39
  • 68
2
votes
1 answer

Spoof the src ip address when querying to DNS

I am using python I want to spoof srcip address when sending DNS query? Python code is not neccessary? Even shell command do the purpose. I tried dig but error comes. eg $dig -b 10.0.1.1 google.com dig: isc_socket_bind: address not available can…
duck
  • 2,483
  • 1
  • 24
  • 34
1
vote
1 answer

Receiving nameserver set by passing one NS

Is there a way to recieve the complete nameserver set by passing just one nameserver of the set? For example I pass the the Nameserver: ns1.sedoparking.com and as a result I would expect ns1.sedoparking.com + ns2.sedoparking.com I tried it already…
heuri
  • 151
  • 3
  • 12
1
vote
1 answer

How to use NSHost to get the name behind a bunch of LAN ip addresses?

I know how to get the name behind an ip address using the terminal and dig. I.e: dig @224.0.0.251 -p5353 -x 192.168.0.195 +short However, I don't want to use NSTask in my application. How can I use NSHost to get the name behind an ip address within…
Daniel
  • 1,473
  • 3
  • 33
  • 63
1
vote
1 answer

socat and dig simulate DNS request on localhost DNS server

I am trying to play with socat to simulate a DNS request on localhost. Here is what I did setup DNS server on localhost port 15353 and once request received on 15353, it will forword it to google's DNS server 8.8.8.8:53 socat -v -v…
Jia
  • 2,417
  • 1
  • 15
  • 25
1
vote
0 answers

Use an existing DNSdig (golang) in a return to display JSON (VueJS)

I'm fairly new to programming so sometimes when things are explained they get lost in translation. This is the assignment. would need a new component with a basic form (one for requested domain, then a drop down with values of A, AAAA, PTR, MX and…
1
vote
1 answer

Bash: pinging servers and writing the IP to a file

I currently have to find the IP-Adresses of a lot of servers. I have written a bash script on linux that creates all the server names. When I write it like this, I get all servernames, even if there no longer have an IP. host $f$n$d >> IPs.txt Is…
user18429846
1
vote
1 answer

dig return connection timed out; no servers could be reached

While trying to dig @8.8.8.8 google.com I'm getting: connection timed out; no servers could be reached Ping works, but I can't dig to any server. The firewall is off, and port 53 is open (TCP and UDP).
mr javad
  • 163
  • 2
  • 13
1
vote
2 answers

How do I hide dnssec keys from results when doing 'dig +trace microsoft.com'

Usually when I run dig commands, it hides the DNSSEC keys (the RRSIG, DS, and NSEC records). Per the man page for dig, you can use this option to enable/disable DNSSEC validation: +[no]dnssec But when combined with +trace it doesn't seem to work. I…
madacoda
  • 363
  • 4
  • 11
1
vote
1 answer

How to get list of pods hostnames from headless service?

I have a stateful set for MongoDB replication where I need all the hostnames of pods through the service endpoint. I am able to fetch the names but not exactly the only list of hostnames. $ dig srv mongodb +search +short 0 100 27017…
SNR
  • 460
  • 5
  • 20
1
vote
1 answer

After DNS A record change, dig and nslookup showing different results for a the same domain name on Mac OS X

After changing the DNS A record of a hostname, dig and nslookup are showing different results. While dig is showing the correct IP, nslookup is still showing the old IP. I am on macos 11.2.3 The nslookup output for my domain {{domainname}} is (note…
Ouss
  • 2,912
  • 2
  • 25
  • 45
1
vote
1 answer

DNS problem: dig successful, ping fails (Docker container)

I am running a Java application inside a Docker container, which tries to scrape some content from the DHL tracking URL https://ecommerceportal.dhl.com/track/ This has been working fine, but a few days ago, it stopped working with an…
BrooklynFFM
  • 59
  • 1
  • 4
1
vote
1 answer

DNS configuration on virtual machine without internet

Im trying to configure DNS server on my virtual computer without internet connection. I'm using PowerDNS with BIND backend. Here is my configuration of zone: $ORIGIN example.com. $TTL 86400 @ IN SOA example2.com. ( 2017020401 ; serial …