nanog mailing list archives
Re: dns and software, was Re: Reliable Cloud host ?
From: William Herrin <bill () herrin us>
Date: Mon, 27 Feb 2012 18:50:27 -0500
On Mon, Feb 27, 2012 at 3:43 PM, david raistrick <drais () icantclick org> wrote:
On Mon, 27 Feb 2012, William Herrin wrote:In some cases this is because of carelessness: The application does a gethostbyname once when it starts, grabs the first IP address in the list and retains it indefinitely. The gethostbyname function doesn't even pass the TTL to the application. Ntpd is/used to be one of the notable offenders, continuing to poll the dead address for years after the server moved.While yes it often is carelessness - it's been reported by hardcore development sorts that I trust that there is no standardized API to obtain the TTL... What needs to get fixed is get[hostbyname,addrinfo,etc] so programmers have better tools.
Meh. What should be fixed is that connect() should receive a name instead of an IP address. Having an application deal directly with the IP address should be the exception rather than the rule. Then, deal with the TTL issues once in the standard libraries instead of repeatedly in every single application. In theory, that'd even make the app code protocol agnostic so that it doesn't have to be rewritten yet again for IPv12. Regards, Bill Herrin -- William D. Herrin ................ herrin () dirtside com bill () herrin us 3005 Crane Dr. ...................... Web: <http://bill.herrin.us/> Falls Church, VA 22042-3004
Current thread:
- Re: Reliable Cloud host ?, (continued)
- Re: Reliable Cloud host ? William Herrin (Feb 27)
- Re: Reliable Cloud host ? Valdis . Kletnieks (Feb 27)
- Re: Reliable Cloud host ? Jared Mauch (Feb 28)
- Re: Reliable Cloud host ? William Herrin (Feb 28)
- Re: Reliable Cloud host ? Owen DeLong (Feb 28)
- Re: Reliable Cloud host ? david raistrick (Feb 28)
- Re: Reliable Cloud host ? Tei (Feb 29)
- Re: Reliable Cloud host ? Bobby Mac (Feb 29)
- Re: Reliable Cloud host ? Valdis . Kletnieks (Feb 28)
- dns and software, was Re: Reliable Cloud host ? david raistrick (Feb 27)
- Re: dns and software, was Re: Reliable Cloud host ? William Herrin (Feb 27)
- Re: dns and software, was Re: Reliable Cloud host ? Owen DeLong (Feb 27)
- Re: dns and software, was Re: Reliable Cloud host ? William Herrin (Feb 27)
- Re: dns and software, was Re: Reliable Cloud host ? George Herbert (Feb 27)
- Re: dns and software, was Re: Reliable Cloud host ? Matt Addison (Feb 27)
- Re: dns and software, was Re: Reliable Cloud host ? Mark Andrews (Feb 27)
- Re: dns and software, was Re: Reliable Cloud host ? Owen DeLong (Feb 28)
- Re: dns and software, was Re: Reliable Cloud host ? William Herrin (Feb 28)
- Re: dns and software, was Re: Reliable Cloud host ? Mark Andrews (Feb 28)
- Re: dns and software, was Re: Reliable Cloud host ? William Herrin (Feb 28)
- Re: dns and software, was Re: Reliable Cloud host ? Mark Andrews (Feb 28)