LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2021, 08:33 AM   #1
hunter86_bg
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Rep: Reputation: Disabled
Question dig - difference between type ANY and A


I have recently noticed that my local firewall (which also plays the role of DNS) is behaving strangely and I got the following output:
Code:
user@laptop:~> dig +noall  +answer engine.localdomain  ANY
user@laptop:~> echo $?
0
user@laptop:~> dig +noall  +answer engine.localdomain  A
engine.localdomain.     3600    IN      A       192.168.1.2
user@laptop:~> echo $?
0
The full output is:
Code:
user@laptop:~> dig engine.localdomain

; <<>> DiG 9.16.6 <<>> engine.localdomain
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36115
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;engine.localdomain.            IN      A

;; ANSWER SECTION:
engine.localdomain.     3600    IN      A       192.168.1.2

;; Query time: 0 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: нд юни 13 16:31:48 EEST 2021
;; MSG SIZE  rcvd: 63
What's the difference between ANY and A ? I always thought that ANY should provide the A and any other type of record for this system.
 
Old 06-14-2021, 12:39 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by hunter86_bg View Post

What's the difference between ANY and A ? I always thought that ANY should provide the A and any other type of record for this system.
Me too. My conclusion is that this DNS server has a single resource record.
 
Old 06-14-2021, 12:56 AM   #3
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Might this be related (?):
https://blog.cloudflare.com/rfc8482-...oodbye-to-any/
 
1 members found this post helpful.
Old 06-14-2021, 01:08 AM   #4
hunter86_bg
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hm ... Most probably, yes.
I'll check with the oVirt's community and maybe we can use dig with A and AAAA instead.
 
Old 06-14-2021, 12:20 PM   #5
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
The ANY request is totally optional now, and being phased out:

Oh, it is referenced above, but it has a RFC 8482. Some servers refuse, some just return.

Last edited by elgrandeperro; 06-14-2021 at 12:22 PM.
 
1 members found this post helpful.
Old 06-19-2021, 09:20 AM   #6
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
With dig I've noticed that often you get the A record only, if you start querying with ANY, but then if you query for other types of records, such as MX, TXT, and then you use ANY again, these previous answers (for A, MX, TXT) are going to show up, as if they're in the dns cache, somewhere (maybe from local/ISP DNS server responds?)
 
  


Reply

Tags
difference, dig, type



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] difference between partition type and file system chinmaya5 Linux - Software 15 01-17-2017 10:14 AM
[SOLVED] dig utility does not return any answer for CNAME record amit.kanade1983 Linux - Server 4 04-11-2014 11:04 AM
BIND9: dig <hostname> doesn't work, dig <hostname.domain.tld> does. jhwilliams Linux - Server 2 04-09-2010 01:01 PM
dig @ works, dig doesn't eelgueta Linux - Networking 6 07-09-2007 06:45 PM
Any practical difference between VSFTP and PFTP? user1442 Slackware 3 10-25-2005 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration