SPUG: RE: DNS Lookups

Daryn Nakhuda 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. 


-daryn



> 216.144.70.231 => proxy.ia3.marketscore.com
> ** 216.144.70.231 => ?
> 64.210.248.135 => proxy.ia2.marketscore.com
> ** 64.210.248.135 => ?
> 216.142.233.73 => proxy.sj3.marketscore.com
> ** 216.142.233.73 => ?
> 64.210.241.103 => proxy.ia4.marketscore.com
> ** 64.210.241.103 => ?
> 65.90.98.9 => proxy.sj4.marketscore.com
> ** 65.90.98.9 => ?
> 216.142.233.105 => proxy.sjc.marketscore.com
> ** 216.142.233.105 => ?
> 64.0.99.201 => proxy.or3.marketscore.com
> ** 64.0.99.201 => ?




 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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 mailing list