Questions tagged [dig]

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

213 questions
10
votes
1 answer

dig-like functionality on windows?

On a windows system, I'm trying to gather all the IP addresses for a DNS name & call a tool with each IP address. I know how to do it from a shell script - but not how to do it from a batch or powershell file. I want to port this to…
Jason De Arte
  • 467
  • 1
  • 3
  • 14
8
votes
4 answers

Pass stdin into Unix host or dig command

Let's say I have a list of IPs coming into a log that I'm tailing: 1.1.1.1 1.1.1.2 1.1.1.3 I'd like to easily resolve them to host names. I'd like to be able to tail -f access.log | host - Which fails as host doesn't understand input from stdin…
tomasz
  • 323
  • 1
  • 4
  • 13
7
votes
1 answer

Resolving gmail.com mail server

I am trying to find the gmail.com mail server using dig command and verifying the results returned by dig command using telnet. $ dig gmail.com MX ; <<>> DiG 9.7.3 <<>> gmail.com MX ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode:…
Talespin_Kit
  • 20,830
  • 29
  • 89
  • 135
7
votes
1 answer

Why dig command is returning only one IP address of google.com?

As we know google has more than one IP addresses. If we use the website https://toolbox.googleapps.com/apps/dig/#A/google.com@8.8.8.8 it results more than one IP addresses of google. If I run the following command then the scenario is…
my name is GYAN
  • 1,269
  • 13
  • 27
6
votes
3 answers

Domain name existence via "dig"

Would it be possible to check a domain name its existence by checking the output of "dig"? Inside the bind sources I found these constants: 0 DNS_R_NOEROR 1 DNS_R_FORMERR 2 DNS_R_SERVFAIL 3 DNS_R_NXDOMAIN 4 DNS_R_NOTIMP 5 DNS_R_REFUSED 6…
Salvania
  • 61
  • 1
  • 2
6
votes
1 answer

Is it possible to list all third-level domains of the given second-level domain?

For example, suppose I want to list all third-level domains of google.com. That list should look like translate.google.com plus.google.com etc. Is it possible to get that list for an arbitrary second-level domain?
Adobe
  • 12,967
  • 10
  • 85
  • 126
6
votes
4 answers

How do I get my public ip address in a shell script?

This command returns my ip address with additional information. dig @resolver1.opendns.com myip.opendns.com ; <<>> DiG 9.6-ESV-R4-P3 <<>> @resolver1.opendns.com myip.opendns.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;;…
Deepan Chakravarthy
  • 4,154
  • 7
  • 25
  • 21
5
votes
2 answers

Finding what NS is used for a subdomain?

Two questions from a dns newb: Is it possible for a subdomain to use a different set of nameservers than its parent domain? Eg: abc.ca uses ns.whatever.com and ns2.whatever.com, while sub.abc.ca uses ns.anything.com and ns2.anything.com If this is…
Ray
  • 3,409
  • 8
  • 33
  • 40
5
votes
2 answers

What's the name lookup differences between curl and nslookup

I'm lost when trying to figure out when a DNS query will be timed out. Tried multiple scenarios(on Linux): No name server configured in /etc/resolv.conf ###################### curl…
Xiaoming
  • 599
  • 2
  • 8
  • 17
5
votes
3 answers

How do you parse the SRV record's port from a dig result?

I'm parsing the output of dig like this to get the port of an SRV record. export SERVER_DNS_NAME=myserver echo "SERVER_DNS_NAME: " $SERVER_DNS_NAME echo "dig: " $(dig +noall +answer $SERVER_DNS_NAME SRV ) echo "port old: " $(dig +noall +answer…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
5
votes
3 answers

DiG transfer fails with axfr options

For testing purposes, I'm trying to get a list of all DNS records set for a domain, using this method. This works: root@cs:/# dig @nameserver domain ; <<>> DiG 9.9.2-P1 <<>> @nameserver domain ; (2 servers found) ;; global options: +cmd ;; Got…
user1544337
4
votes
0 answers

Is there a OWL reasoner for .NET

I'm looking for an OWL-DL reasoner that provides an .NET API. Alternatively I could use a DIG compliant reasoner written in any language, but i need a .NET library that is able to convert OWL ontologies into DIG XML language. Anyone heard about such…
dahpgjgamgan
  • 2,977
  • 4
  • 25
  • 26
4
votes
2 answers

DNS: How to Dig thru the right domain name from the TLD?

I'd like to query the DNS records until get the right domain name. For instance, given www.subdomain.site.com.br, be able to dig from .br until site.com.br. Which is the most (protocol-speaking) way to achieve that? An recipe using dig/nslookup…
aldrinleal
  • 3,559
  • 26
  • 33
4
votes
0 answers

What does "OPT PSEUDOSECTION" mean in dig report?

Take Facebook as an example, I found OPT PSEUDOSECTION doesn't exist in the first query request, but exist in the second try. What does OPT PSEUDOSECTION mean? Why it doesn't exist in the first try?
Ryan Lyu
  • 4,180
  • 5
  • 35
  • 51
4
votes
3 answers

My users get "net::err_name_not_resolved"

I did get messages from android phone users that my website is not loading. When an android phone clicks on a link to go to my website it gets the error: net::err_name_not_resolved On computers and iPhones, I don't get the error. When the android…
EnzoTrompeneers
  • 1,031
  • 1
  • 14
  • 30
1
2
3
14 15