- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How not to cache a DNS lookup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2003 09:19 AM
тАО09-12-2003 09:19 AM
Is it possible to make a client or a server not cache the results of an nslookup?
I am using name resolution to contact a server that for security reasons, changes its IP address about every 15-30 seconds. So on a regular basis, I can't connect, I assume because I'm using incorrect cache.
My client is an R390 running HP-UX 11.0. I'm not sure what the server is, but I could setup DNS on the client and have it just use itself for resolution, but would still need it not to cache lookups for this one site.
Thanks in advance for any help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2003 09:59 AM
тАО09-12-2003 09:59 AM
Re: How not to cache a DNS lookup
I'm really interested to know what useful connection you can make to a machine that changes it's IP address every 15-30 seconds though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2003 10:11 AM
тАО09-12-2003 10:11 AM
Re: How not to cache a DNS lookup
Our systems take about 2 minutes for an IP address change to propagate through the switches, and 10 or 15 minutes for a DNS change to be seen throughout the building. More time still for the WAN to catch up.
If you do decide to clear the ARP table, and not just an entry, be prepared for the short flood and delay on a big net when everyone sends out new arp requests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2003 10:22 AM
тАО09-12-2003 10:22 AM
Re: How not to cache a DNS lookup
We are connecting a commerce server to a credit card processor, so the connections rarely last more than a second.
Looking closer, I found the cc processor rolls its IP between three IPs every 15, 30, 45, or 60 seconds, which IP it uses and how long it will use it for is completely random.
They only way they will let us connect is through name resolution, but as before, if we cache that IP, it may not work in the near future.
We are also calling the cc processor to see if they know how to setup our DNS to not cache their address. But if anyone knows a way, please respond.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2003 03:24 PM
тАО09-12-2003 03:24 PM
SolutionIf you want to completely disable caching in the named.conf file options section:
options {
recursion no;
};
but I doubt you want to do that. The better answer would be to instruct all DNS queries about a particular zone (e.g. "creditcard.abc") to be directed to a particular forwarder and not attempt to do any local resolution.
zone "creditcard.abc" {
type forward;
forwarders {65.165.23.17};
forward only;
};
This will have the effect of forwarding all requests concerning "xxx.creditcard.abc" to 65.165.23.17. The syntax also allows for non-default ports for that DNS server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2003 01:30 AM
тАО09-13-2003 01:30 AM
Re: How not to cache a DNS lookup
I beg to differ. Disabling Recursion in a Caching only DNS server( in forwarding setup ) will disable the name resolving ability of the caching server.
I would suggest to use max-cache-ttl option in named.conf.
For example, in named.conf put
max-cache-ttl 5
will expire the cached entries after 5 seconds and perform a fresh recursive lookup.
regards,
U.SivaKumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 10:14 AM
тАО09-15-2003 10:14 AM
Re: How not to cache a DNS lookup
In addition to all the discussion of how to get a caching DNS server to not cache replies, you have to consider client application behaviour. While the HP-UX name resolver library will not cache replies (IIRC), you have to make sure that your client application makes a fresh gethostbyname/getaddrinfo (prefered to gethostbyname so you can start getting ready for IPv6...) call before each attempt to connect().
If the client code is run from scratch on each request then that will happen naturally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2003 10:24 AM
тАО09-15-2003 10:24 AM