Koozali.org: home of the SME Server

dns question

dwater

dns question
« on: May 16, 2005, 04:45:31 AM »
How come I get this at the command line :

% host www.bejing-olympic.org.cn
Host www.bejing-olympic.org.cn not found: 3(NXDOMAIN)

but my web browser still manages to show the web page?

Max.

guest22

dns question
« Reply #1 on: May 16, 2005, 06:29:22 AM »
I can not reach them in any way. I guess their DNS entry is 'under constuction'

dwater

dns question
« Reply #2 on: May 16, 2005, 07:10:07 AM »
Quote from: "guest22"
I can not reach them in any way. I guess their DNS entry is 'under constuction'


Well, it shouldn't be, in that they've existed for several year.

..but in any case, I am wondering how 'host' can fail, yet a web browser can succeed, to resolve the domain?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: dns question
« Reply #3 on: May 16, 2005, 08:14:18 AM »
...

dwater

Re: dns question
« Reply #4 on: May 16, 2005, 08:29:24 AM »
Quote from: "RayMitchell"
dwater

% host www.bejing-olympic.org.cn
Host www.bejing-olympic.org.cn not found: 3(NXDOMAIN)

Try
http://www.beijing-olympic.cn


Actually, 'host' is resolving www.beijing-olympic.org.cn now too :

% host www.beijing-olympic.org.cn
www.beijing-olympic.org.cn is an alias for www.chinacache.beijing-olympic.org.cn.
www.chinacache.beijing-olympic.org.cn has address 211.154.222.24

...but you miss the point, which is about name resolution.

How can the application 'host' fail to resolve a name and, at the same time, the application 'firefox' succeed in resolving a name? They both use the same DNS server (my SME server)....I guess my browser could have cached the name in it's own cache (does it have a DNS cache of it's own?), or perhaps squid cached it...and (obviouslt) 'host' doesn't use the squid cache.

Max.