Re: [dns-operations] question on query to DNS server's IPv6 interface

2020-03-31 Thread Stephane Bortzmeyer
On Tue, Mar 31, 2020 at 08:37:30PM +0800, Tessa Plum wrote a message of 13 lines which said: > Another question, in DNS server, how to count how many queries were > from IPv6 interface, and how many queries were from IPv4 interface? It depends on the name server. Here, is an example with

Re: [dns-operations] question on query to DNS server's IPv6 interface

2020-03-31 Thread Tessa Plum
On 2020/3/31 8:38 下午, Ondřej Surý wrote: I know that there's a plethora of DNS RFC (the standards that define DNS), but perhaps you can start by looking at the wonderful project that Bert Hubert started - teaching dns - https://powerdns.org/hello-dns/tdns/intro.md.html Thank you so much

Re: [dns-operations] question on query to DNS server's IPv6 interface

2020-03-31 Thread Vladimír Čunát
On 3/31/20 6:29 AM, Tessa Plum wrote: > When making a DNS query (giving the type is A) to an authorized > nameserver to its IPv6 address, will the value in answer are also IPv6 > addresses? If the host doesn't have an IPv6 address, how will DNS > server return? No, A always means IPv4 address. 

Re: [dns-operations] question on query to DNS server's IPv6 interface

2020-03-31 Thread Ondřej Surý
Hi Tessa, welcome to the wonderful world of DNS and to this mailing list. No, the `A` rrtype query is specifically IPv4 address. The IPv6 addresses are stored in `` rrtype records. When `` rrtype does not exist, but the other rrtypes does exist, the answer is NOERROR + SOA record. This

Re: [dns-operations] question on query to DNS server's IPv6 interface

2020-03-31 Thread Tessa Plum
On 2020/3/31 8:25 下午, Bob Harold wrote: The transport (IPv4 or IPv6) that you use to talk to the DNS server should have no effect on the queries or answers.  If you ask for "A" records, you will get "A" records, which have IPv4 addresses inside the data.  But the data inside the packet has

Re: [dns-operations] question on query to DNS server's IPv6 interface

2020-03-31 Thread Bob Harold
On Tue, Mar 31, 2020 at 8:16 AM Tessa Plum wrote: > Hello > > Sorry I am newbie to DNS. > > When making a DNS query (giving the type is A) to an authorized > nameserver to its IPv6 address, will the value in answer are also IPv6 > addresses? If the host doesn't have an IPv6 address, how will DNS

[dns-operations] question on query to DNS server's IPv6 interface

2020-03-31 Thread Tessa Plum
Hello Sorry I am newbie to DNS. When making a DNS query (giving the type is A) to an authorized nameserver to its IPv6 address, will the value in answer are also IPv6 addresses? If the host doesn't have an IPv6 address, how will DNS server return? Thank you. Tessa.