The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help, How to add secondary IP addr to eth0, by programme? pcman High Level Programming 2 07-16-2006 11:05 PM
Internal heap ERROR 17113 addr=0x0 Isax50 UNIX for Advanced & Expert Users 0 01-03-2006 12:16 PM
my_server.1.131.10.in-addr.arpa stancwong UNIX for Dummies Questions & Answers 2 11-14-2005 11:44 AM
AIX 5.3 , gensyms command, translate 32 bit addr to 64 bit addr mrmeswani AIX 0 07-22-2005 02:22 PM
finger, getting name and pts from ip addr swag:þ UNIX for Dummies Questions & Answers 2 06-20-2005 03:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-23-2009
softindia softindia is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 2
TTL for IP addr from DNS through C code

Hi All,
I know that getaddrinfo() return the multiple IP addresses (if present) for a hostname. But, I want to know how to get the TTL value for this list from DNS. I want to get this TTL value and cache this IP address list for that much time and then again go for DNS resolution if TTL expires.

Have any body come across such solution.Plz reply.

Thanks ...
  #2 (permalink)  
Old 02-23-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,776
Hint:

Look at the source code for traceroute
  #3 (permalink)  
Old 02-24-2009
softindia softindia is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 2
get TTL from DNS for list of IP address

Hi,
I just went through the "traceroute" code straight away. But, could not get much help. Can you me give some pointers through any sample code that you would have.

Thanks a lot.
Closed Thread

Bookmarks

Tags
get ttl value for this list, getaddrinfo() done

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0