On 31 October 2011 12:00, Reinier Battenberg < [email protected]> wrote:
> ** > > (does someone know why this authoritive secion is sometimes missing?) > The first answer you got has the aa flag set whereas the second does not. This means that the first answer was gotten from an authoritative server for that domain while the second answer from 8.8.8.8 was out of a dns cache. Hope this helps. -- Hari > As an example, here are 2 digs for our webserver. Once on our internal > network, and once to the google nameservers: > > > reinier@mountlab6:/var/www/finddistrict/ochacd$ dig @server1 > www.mountbatten.net > > > ; <<>> DiG 9.7.3 <<>> @server1 www.mountbatten.net > > ; (1 server found) > > ;; global options: +cmd > > ;; Got answer: > > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26854 > > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 > > > ;; QUESTION SECTION: > > ;www.mountbatten.net. IN A > > > ;; ANSWER SECTION: > > www.mountbatten.net. 259200 IN CNAME hosting2.mountbatten.net. > > hosting2.mountbatten.net. 259200 IN A 213.239.217.9 > > > ;; AUTHORITY SECTION: > > mountbatten.net. 259200 IN NS ns.mountbatten.net. > > > ;; ADDITIONAL SECTION: > > ns.mountbatten.net. 259200 IN A 127.0.0.1 > > > ;; Query time: 0 msec > > ;; SERVER: 192.168.38.4#53(192.168.38.4) > > ;; WHEN: Mon Oct 31 11:59:25 2011 > > ;; MSG SIZE rcvd: 109 > > > reinier@mountlab6:/var/www/finddistrict/ochacd$ dig @8.8.8.8 > www.mountbatten.net > > > ; <<>> DiG 9.7.3 <<>> @8.8.8.8 www.mountbatten.net > > ; (1 server found) > > ;; global options: +cmd > > ;; Got answer: > > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55052 > > ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 > > > ;; QUESTION SECTION: > > ;www.mountbatten.net. IN A > > > ;; ANSWER SECTION: > > www.mountbatten.net. 1165 IN CNAME hosting2.mountbatten.net. > > hosting2.mountbatten.net. 1165 IN A 213.239.217.9 > > > ;; Query time: 255 msec > > ;; SERVER: 8.8.8.8#53(8.8.8.8) > > ;; WHEN: Mon Oct 31 11:59:33 2011 > > ;; MSG SIZE rcvd: 76 > > > > >
_______________________________________________ The Uganda Linux User Group: http://linux.or.ug Send messages to this mailing list by addressing e-mails to: [email protected] Mailing list archives: http://www.mail-archive.com/[email protected]/ Mailing list settings: http://kym.net/mailman/listinfo/lug To unsubscribe: http://kym.net/mailman/options/lug The Uganda LUG mailing list is generously hosted by INFOCOM: http://www.infocom.co.ug/ The above comments and data are owned by whoever posted them (including attachments if any). The mailing list host is not responsible for them in any way.
