Resolve name without FQDN

Rhys McWilliams rhys at kcc.co.za
Thu Nov 27 12:06:49 UTC 2003


Hi,

I have gone through a lot of the lists archives trying to see if my =
question has been asked and answered, and am now going squint from all =
the reading.....

I'm running BIND 9.2.1 on Redhat 7.3 and also running transparent proxy =
using Squid 2.4.

Some of out internal users are needing to access a web site that is not =
on our local network.
The URL is http://haf0gau05/index.htm  (as you can see there is no =
FQDN)
This site is used by some of our customers to log support calls that =
our staff then look up on that site and action accordingly.
The developers of the site have unfortunately used absolute URLS for =
ALL the links on the site and we have no access or control over how =
they setup their site. They use WINS on their side of the network but =
we do not have any kind of access to their WINS server to even try do =
lookup off their side.

The problem comes in when we browse to the site and Squid tries to =
resolve the name haf0gau05 and of course fails (dig also fails).

I have tried placing the haf0gau05 name with its relevant IP in the =
/etc/hosts and checked that /etc/nsswitch.conf has the line
hosts:      files dns
/etc/host.conf also exists and has the line
order hosts,bind
None of this setup made any kind of difference.....

I then tried adding the haf0gau05 to our local domains zone file and =
made sure the search line in /etc/resolv.conf had our domain on it.
If I then did a dig with the name & the FQDN then I got a resulting IP =
that is correct but if I leave out the FQDN I get a failed lookup.
My PC, which is in the same domain as specified in /etc/resolv.conf =
does the get a reply of the correct IP.
But Squid of fails to resolve the name through all of this as well.

Is it even possible to resolve without specifying a FQDN?
If it is possible, what am I doing wrong or what do I need to do to get =
it to work?
I don't mind if I have to setup a new zone file or include the entries =
in an existing zone and get the domain search order working....


Thanks
------------------------ 
Rhys McWilliams
Johannesburg, South Africa
Tel: +27 11 796 1000    Fax: +27 11 796 1100
http://www.kerridge.co.za/
mailto:rhys at kcc.co.za



Regards
------------------------ 
Rhys McWilliams
Network Administrator
Kerridge Computer Company Ltd. (S.A.)
Johannesburg, South Africa
Tel: +27 11 796 1000    Fax: +27 11 796 1100
http://www.kerridge.co.za/
mailto:rhys at kcc.co.za

*********************************************************************
                             Disclaimer

This e-mail transmission is confidential and intended solely for the
person or organization to whom it is addressed. If you are not the
intended recipient, you must not copy, distribute or disseminate the
information, or take any action in reliance of it. Any views expressed
in this message are those of the individual sender, except where the
sender specifically states them to be the views of any organization or
employer. If you have received this message in error, do not open any
attachment but please notify the sender (above) deleting this message
>from your system. Please rely on your own virus check no
responsibility is taken by the sender for any damage arising out of
any bug or virus infection.
*********************************************************************



More information about the bind-users mailing list