TIDDNSResolver A query also returning NS records

Giganews Newsgroups
Subject: TIDDNSResolver A query also returning NS records
Posted by:  Jan Doggen (jdogg…@DONOTSPAMnorman.nl)
Date: Fri, 6 Apr 2007

Hello

If I ask TIDDNSResolver for A records, it also returns NS records.
Example:

hetnet.nl returns:
IP address = 213.75.12.46
IP address = 213.75.12.59
IP address = 213.75.12.42
IP address = 213.75.12.83
IP address = 213.75.12.65
IP address = 213.75.12.38
IP address = 213.75.12.30
IP address = 213.75.12.34
IP address = 213.75.12.54
IP address = 213.75.12.82
IP address = 213.75.12.22
IP address = 213.75.12.58
IP address = 213.75.12.26
IP address = 213.75.12.14
IP address = 213.75.12.76
IP address = 213.75.12.50
IP address = 213.75.12.77
IP address = 213.75.12.10
IP address = 213.75.12.64
IP address = 213.75.12.18
Name Server = ns3.wxs.nl
Name Server = ns4.wxs.nl
IP address = 195.121.1.38
IP address = 213.239.154.101

I don't need the NS results, but the last two are also A records.
I know that 213.239.154.101 is for ns4.wxs.nl,
and 195.121.1.38 is for ns3.wxs.nl.

Question 1:
-----------
Is it safe to assume that these last A records correspond with the NS
records?

If not, how can I exclude them?
I thought about looking up ns3.wxs.nl and ns4.wxs.nl and I then get:

IP address = 195.121.1.38
Name Server = ns09.wxs.nl
Name Server = ns08.wxs.nl
Name Server = ns4.wxs.nl
IP address = 195.121.1.67
IP address = 195.121.1.40
IP address = 213.239.154.101

and

IP address = 213.239.154.101
Name Server = ns08.wxs.nl
Name Server = ns09.wxs.nl
Name Server = ns4.wxs.nl
IP address = 195.121.1.40
IP address = 195.121.1.67
IP address = 213.239.154.101

but then I would have to make another assumption:

Question 2:
-----------
Is it safe to assume that the first (A) result determines the IP address
of the name server?

Thanks
Jan

Replies