Questions tagged [dig]

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

213 questions
1
vote
1 answer

DNS lookup in c/c++

I must write a C/C++ program which works a little bit like dig and nslookup: it must know IP addresses of any site. It should do things like the dig www.example.com MX +short command does. I can't imagine how can this be done. Any ideas?
Nabijon
  • 821
  • 2
  • 13
  • 17
0
votes
0 answers

I use dig and dnspython to make DOH query, dig succeed but why dnspython fail?

The dig is a tool on linux to make dns query, and dnspython is a python packet to make dns query. I want to make DOH query and I have tried these two ways. When I use dig, I succeed, but when I use dnspython, I fail. 1. Environment initialization I…
0
votes
0 answers

About AWS Route53 public host zone and private host zone

I registered a domain with test.com on Route53. In the public hosted zone I created a record for the subdomain with dev.test.com. I used an alias and set it to an NLB with a fixed IP. I also created a record for the dev.test.com subdomain in the…
devbetter
  • 1
  • 2
0
votes
0 answers

AWS EKS dig reverse dns lookup show different results

I am running a bunch of services inside a AWS EKS cluster. Using below service as an example. $ k get svc redis -n production NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE redis ClusterIP 10.100.215.197
kevin
  • 824
  • 1
  • 9
  • 14
0
votes
1 answer

Anyone know how to install dig into the codebuild v5 image on AWS?

So, I want to install the dig command because it's not available in the Codebuild v5 image. I tried to do: sudo apt-get install dnsutils but it errors out with an exit status 100. What's the best way to get this utility in my image with the…
Jimmy Chen
  • 207
  • 5
  • 12
0
votes
1 answer

Why do IP addresses given by dig not work?

I'm trying to learn more about networks and came across the following: When I use dig to get the IP address of stack overflow, I get the following result: dig stackoverflow.com…
Alex
  • 474
  • 4
  • 12
0
votes
2 answers

How to use IP address with whois, after digging it using shell_exec PHP?

I am quite new to PHP, and I am determined to make myself a tool about domain's information. I am requesting for the user, to input the domain name, and afterwards, I dig separate DNS records, such as A,NS etc. The issue that I am facing, is that…
Hoolis
  • 47
  • 6
0
votes
1 answer

Printing specific elements from dig, using bash

I'm trying to write a bash script that digs MX on some sites from a list. I don't need all the redundant information besides what MX the domain has. So far this is what my script looks like: #! /bin/bash { while IFS=';' read un fake do dig…
MCmcoy
  • 11
  • 4
0
votes
1 answer

Python: get DNS query from a specific, hardcoded server

How do I do dig TXT +short o-o.myaddr.l.google.com @8.8.4.4 in Python? (That line resolves the hostname o-o.myaddr.l.google.com through the DNS server 8.8.4.4.)
HappyFace
  • 3,439
  • 2
  • 24
  • 43
0
votes
0 answers

dig for windows works in cmd, but it doesn't work in system()

dig for windows works in cmd, but it doesn't work in system() This is in cmd: This is my code: system(" \"C:\\Windows\\System32\\dig.exe google.com\" "); and the result:
zawalida
  • 21
  • 3
0
votes
1 answer

Sockets programming: DIG DNS Query Messages: Incorrect header length?

RFC Reference I am working on a project which involves sockets programming and interpreting the output from DIG DNS queries. I'm using RFC 1035 as my reference. Although this is quite old now (1987) as far as I can tell from later RFCs (for example…
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225
0
votes
1 answer

I can only access an IP when connected to a network other than mine, why could that be?

Just today at 12:30 a certain domain I am in need of using for my university stopped working. I didn't think much of it as universities usually are awfully bad at managing downtimes and servers but as the time was (and still is) approaching my…
Erik Uden
  • 23
  • 6
0
votes
0 answers

Without BIND window tool is there any possible way to run the dig command using node js?

Without BIND tool is there any possible way to run the dig command using node js or else is there any BIND package available in node which can run inside node the platform?
Manu N
  • 31
  • 3
0
votes
1 answer

Decoding dig output: +norecurse @nameserver MX to domain

From the output I can understand there was no errors, yet there aren't any answers section to the query. Just to be sure the right question was even asked: "Dig +norecurse @s.nic.dk MX www.dtu.dk" parsing this to: "without recursion, query dtu mail…
Saurus
  • 79
  • 1
  • 7
0
votes
1 answer

dig is unable to use with IP address to test TCP and UDP test instead of domain

I am trying to test IP Address of DNS with port number 53 using DIG as follows **dig +notcp 172.217.10.78 -p 53** i am getting as output as follows ; <<>> DiG 9.16.10 <<>> +notcp 172.217.10.78 -p 53 ;; global options: +cmd ;; Got answer: ;;…
Manu N
  • 31
  • 3