APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS

Gateway down-Answer

This is the answer to Gateway Down

This is a classic DNS problem. When I looked at /etc/resolv.conf, it looked like this:

domain xyz.com
nameserver 192.74.xxx.xxx

Every time a Windows machine tried to access the Unix box, Unix would do a reverse DNS lookup, using the 192.74 address. If the Internet happened to be down, it would hang a long time trying to get an answer - eventually it would give up, but it was too long for their Windows client application, which effectively just gave up too soon. If the Internet was up, the SCO box would get an immediate "no idea" answer, and would continue quickly. I showed the NT folk that if you were patient enough, telnet would actually connect, but the client application they used just wasn't patient.

This isn't a Unix thing: this would happen with NT or just about any OS I know of; they want to do a reverse DNS lookup when a client connects.

My first thought at fixing this was to make the nameserver point at their internal NT DHCP server which, according to the three NT guys, should provide DNS information for the local network as well as knowing how to get to other nameservers when necessary. However, that didn't work. Not my fault: the NT machine knew nothing about its own DHCP clients. The NT folks were surprised, and said they were sure they could fix it, but that it would take a reboot which was agreed by one and all was Not A Good Idea Right Now.

That's OK, I had another way to fix it. First, I wrote a simple script to populate /etc/hosts, and then modified /etc/resolv.conf to look like this:

domain xyz.com
# local NT DNS server
hostresorder local bind

That fixed it. We all agreed that the problem should also be fixed at the NT server, but that was their work, not mine.

Publish your articles, comments, book reviews or opinions here!

Copyright May 2001 A.P. Lawrence. All rights reserved


Comments are closed for this page. You can comment at the "Answer" page.

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments

Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!

book graphic unix and linux troubleshooting guide

 I sell and support
 Kerio Mail server


This post tagged:

Unix/Linux Consultants

Skills Tests

Guest Post Here