home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] Strange problem with DNS.

Robert Brockway wrote:
> On Thu, 11 May 2006, Charles MacDonald wrote:
> 
>> My wife has been using linux and presented me with a stange problem.
>>
>> She has been trying to get some infomation from www,ishares.com
>>   and has not been able to raise the site.  a check with  "Host"  says
>> it deos not exist.
>>
>>> cmacd@linux:~> host ishares.com
>>> ishares.com has address 65.205.205.213
>>> ishares.com mail is handled by 10 mail-rc-04.barclaysglobal.com.
>>> ishares.com mail is handled by 10 mail-rc-05.barclaysglobal.com.
>>> ishares.com mail is handled by 10 mail-sf-04.barclaysglobal.com.
>>> cmacd@linux:~> host www.ishares.com
>>> Host www.ishares.com not found: 3(NXDOMAIN)
>>> cmacd@linux:~>
> 
> Hi Charles.  What version of 'host' are you using?  The output above is
> not that I'd expect from a vanilla host command.  Do you have aliases set?
> 
> You may wish to consider using 'dig' too.
> 
> The domain looks fine to me.  The SOA TTL is arguably too short.
> 
> Notice I query authoritative servers below.
> 
> $host -t ns ishares.com
> ishares.com             NS      ns2.barclaysglobal.com
> ishares.com             NS      ns1.barclaysglobal.com
> 
> $host www.ishares.com
> www.ishares.com         A       65.205.205.213
> 
> $host www.ishares.com ns2.barclaysglobal.com
> www.ishares.com         A       65.205.205.213
> 
> $host www.ishares.com ns1.barclaysglobal.com
> www.ishares.com         A       65.205.205.213
> 
> $host ishares.com ns1.barclaysglobal.com
> ishares.com             A       65.205.205.213
> 
> $host -t soa ishares.com ns1.barclaysglobal.com
> ishares.com             SOA     dns-sf-03.barclaysglobal.com
> hostmaster.ishares.com (
>                         2006042718      ;serial (version)
>                         7200    ;refresh period (2 hours)
>                         3600    ;retry interval (1 hour)
>                         2419200 ;expire time (4 weeks)
>                         300     ;default ttl (5 minutes)
>                         )
> 


HI, I am not sure of the version...It is the one that comes with SUSE 10.

I just tried twice in a row, using -v for verbose and got an answer once!


cmacd@linux:/> host -v www.ishares.com
Trying "www.ishares.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60552
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;www.ishares.com.               IN      A

;; ANSWER SECTION:
www.ishares.com.        30      IN      A       65.205.205.213

;; AUTHORITY SECTION:
ishares.com.            171696  IN      NS      ns2.barclaysglobal.com.
ishares.com.            171696  IN      NS      ns1.barclaysglobal.com.

;; ADDITIONAL SECTION:
ns1.barclaysglobal.com. 1661    IN      A       65.205.204.167

Received 116 bytes from 72.1.192.22#53 in 292 ms
Trying "www.ishares.com"
Host www.ishares.com not found: 3(NXDOMAIN)
Received 105 bytes from 72.1.192.22#53 in 278 ms
Trying "www.ishares.com"
Host www.ishares.com not found: 3(NXDOMAIN)
Received 105 bytes from 72.1.192.22#53 in 199 ms
cmacd@linux:/> host -v www.ishares.com
Trying "www.ishares.com"
Host www.ishares.com not found: 3(NXDOMAIN)
Received 105 bytes from 72.1.192.22#53 in 195 ms
cmacd@linux:/>

Trying to give it one of the specified nameservers gets me..

cmacd@linux:/> host -v www.ishares.com ns2.barclaysglobal.com
Trying "www.ishares.com"
Using domain server:
Name: ns2.barclaysglobal.com
Address: 65.205.205.167#53
Aliases:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61744
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.ishares.com.               IN      A

;; ANSWER SECTION:
www.ishares.com.        30      IN      A       65.205.205.213

Received 49 bytes from 65.205.205.167#53 in 265 ms
Trying "www.ishares.com"
Using domain server:
Name: ns2.barclaysglobal.com
Address: 65.205.205.167#53
Aliases:

Host www.ishares.com not found: 3(NXDOMAIN)
Received 105 bytes from 65.205.205.167#53 in 270 ms
Trying "www.ishares.com"
Using domain server:
Name: ns2.barclaysglobal.com
Address: 65.205.205.167#53
Aliases:

Host www.ishares.com not found: 3(NXDOMAIN)
Received 105 bytes from 65.205.205.167#53 in 265 ms
cmacd@linux:/>


Trying the other one gives
cmacd@linux:/> host -v www.ishares.com ns1.barclaysglobal.com
Trying "www.ishares.com"
Using domain server:
Name: ns1.barclaysglobal.com
Address: 65.205.204.167#53
Aliases:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58565
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.ishares.com.               IN      A

;; ANSWER SECTION:
www.ishares.com.        30      IN      A       65.205.205.213

Received 49 bytes from 65.205.204.167#53 in 283 ms
Trying "www.ishares.com"
Using domain server:
Name: ns1.barclaysglobal.com
Address: 65.205.204.167#53
Aliases:

Host www.ishares.com not found: 3(NXDOMAIN)
Received 105 bytes from 65.205.204.167#53 in 298 ms
Trying "www.ishares.com"
Using domain server:
Name: ns1.barclaysglobal.com
Address: 65.205.204.167#53
Aliases:

Host www.ishares.com not found: 3(NXDOMAIN)
Received 105 bytes from 65.205.204.167#53 in 299 ms
cmacd@linux:/>


Note that Mozilla, which we both use as a browser tries to do a get host
by name every time it goes to load a page...



even trying the name server by IP (in case the problem is looking up the
name server! gives a half-and half result.




-- 
Charles MacDonald               Stittsville Ontario
 cmacd [ at ] TelecomOttawa [ dot ] net        Just Beyond the Fringe
        http://www.TelecomOttawa.net/~cmacd/
   No Microsoft Products were used in sending this e-mail.