I have 2 servers setup to forward request for prod.example.com and example.com to GCP.
When doing DNS resolution from the same client but using the 2 servers, both of them give me the same answer but one has more things in the answer than the other one:
command used: dig test.prod.example.com @server1 or @server2
server 1 answer:
<<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.5 <<>> test.prod.example.com @server1
global options: +cmd
Got answer:
->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50915
flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
OPT PSEUDOSECTION:
EDNS: version: 0, flags:; udp: 4096
QUESTION SECTION:
test.prod.example.com. IN A
ANSWER SECTION:
test.prod.example.com. 300 IN A 10.100.40.112
AUTHORITY SECTION:
example.com. 4730 IN NS ns-gcp-private.googledomains.COM.
ADDITIONAL SECTION:
NS-GCP-PRIVATE.googledomains.com. 141044 IN A 169.254.169.254
Server2 answer:
<<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.5 <<>> test.prod.example.com @server2
global options: +cmd
Got answer:
->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3502
flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13
OPT PSEUDOSECTION:
EDNS: version: 0, flags:; udp: 4096
QUESTION SECTION:
test.prod.example.com. IN A
ANSWER SECTION:
test.prod.example.com. 209 IN A 10.100.40.112
AUTHORITY SECTION:
com. 140949 IN NS g.gtld-servers.net.
com. 140949 IN NS c.gtld-servers.net.
com. 140949 IN NS e.gtld-servers.net.
com. 140949 IN NS j.gtld-servers.net.
com. 140949 IN NS f.gtld-servers.net.
com. 140949 IN NS i.gtld-servers.net.
com. 140949 IN NS k.gtld-servers.net.
com. 140949 IN NS h.gtld-servers.net.
com. 140949 IN NS l.gtld-servers.net.
com. 140949 IN NS a.gtld-servers.net.
com. 140949 IN NS m.gtld-servers.net.
com. 140949 IN NS b.gtld-servers.net.
com. 140949 IN NS d.gtld-servers.net.
Any ideas why? Does it matter since it can resolve to the correct IP?