command to list a specific domain name records..
Stephane Bortzmeyer
bortzmeyer at nic.fr
Fri Mar 4 08:25:21 UTC 2005
On Fri, Mar 04, 2005 at 09:20:27AM +0200,
CihanS at garanti.com.tr <CihanS at garanti.com.tr> wrote
a message of 36 lines which said:
> what is command to scan a DNS to get all the records for a specific
> domain name?
Query an authoritative name server (important: do not query any name
server in the world, only one which is authoritative for the given
domain name) with a ANY query. For instance, with dig :
% dig @garanti3.garantiteknoloji.com.tr ANY garanti.com.tr.
; <<>> DiG 9.2.4 <<>> @garanti3.garantiteknoloji.com.tr ANY garanti.com.tr.
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47702
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 9, AUTHORITY: 0, ADDITIONAL: 7
;; QUESTION SECTION:
;garanti.com.tr. IN ANY
;; ANSWER SECTION:
garanti.com.tr. 7200 IN SOA garanti2.garanti.com.tr. dnsadmi n.garanti.com.tr. 2005021801 28800 7200 604800 3600
garanti.com.tr. 86400 IN NS garanti3.garantiteknoloji.com.tr .
garanti.com.tr. 86400 IN NS garanti4.garantiteknoloji.com.tr .
garanti.com.tr. 86400 IN NS garanti1.garanti.com.tr.
garanti.com.tr. 86400 IN NS garanti2.garanti.com.tr.
garanti.com.tr. 28800 IN MX 10 mailser.garanti.com.tr.
garanti.com.tr. 28800 IN MX 10 mailser4.garanti.com.tr.
garanti.com.tr. 28800 IN MX 1 mailser2.garanti.com.tr.
garanti.com.tr. 7200 IN A 194.29.211.10
;; ADDITIONAL SECTION:
garanti1.garanti.com.tr. 86400 IN A 194.29.208.124
garanti2.garanti.com.tr. 86400 IN A 194.29.209.214
garanti3.garantiteknoloji.com.tr. 86400 IN A 194.29.209.201
garanti4.garantiteknoloji.com.tr. 86400 IN A 194.29.208.202
mailser2.garanti.com.tr. 28800 IN A 194.29.208.16
mailser.garanti.com.tr. 28000 IN A 194.29.208.16
mailser4.garanti.com.tr. 28800 IN A 194.29.208.16
;; Query time: 279 msec
;; SERVER: 194.29.209.201#53(garanti3.garantiteknoloji.com.tr)
;; WHEN: Fri Mar 4 09:24:38 2005
;; MSG SIZE rcvd: 388
> This message and attachments are confidential and intended solely
> for the individual(s) stated in this message.If you received this
> message although you are not the addressee you are responsible to
> keep the message confidential .
Stupid idea. Read http://www.goldmark.org/jeff/stupid-disclaimers/
More information about the bind-users
mailing list