SPUG: RE: DNS Lookups
daryn at marinated.org
Wed Feb 6 13:48:58 CST 2002
here's a guess:
are some of these servers in your hosts file on the box
that you're running the gethostbyaddr on? the ones that show up?
While both nslookup and gethostbyaddr are resolvers, gethostbyaddr doesn't
neccesarily/always use dns, while nslookup does.
I don't know the exact file that sets this configuration on
solaris, but on linux it's /etc/nsswitch.conf.
the line in the file looks like this:
hosts: files nisplus dns
if dns isn't in there, it won't use it. furthermore, it checks them in the
order above, so if you have different values in the hosts file than in
dns, you'd see them in your test script as well.
> 126.96.36.199 => proxy.ia3.marketscore.com
> ** 188.8.131.52 => ?
> 184.108.40.206 => proxy.ia2.marketscore.com
> ** 220.127.116.11 => ?
> 18.104.22.168 => proxy.sj3.marketscore.com
> ** 22.214.171.124 => ?
> 126.96.36.199 => proxy.ia4.marketscore.com
> ** 188.8.131.52 => ?
> 184.108.40.206 => proxy.sj4.marketscore.com
> ** 220.127.116.11 => ?
> 18.104.22.168 => proxy.sjc.marketscore.com
> ** 22.214.171.124 => ?
> 126.96.36.199 => proxy.or3.marketscore.com
> ** 188.8.131.52 => ?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list