Hi, According to my experience with DBD::Sybase + Freetds, the name resolution is done for the host names specified in the freetds.conf file.
The following code will try to create an handler object for the host+port specified in the [ENGINEERING] section of the freetds.conf file $dbh = DBI->connect("dbi:Sybase:server=ENGINEERING", $user, $passwd); This is the content of freetds.conf: [ENGINEERING] host = host.domain.com port = 1433 tds version = 5.0 More information are available here: http://www.freetds.org/userguide/freetdsconf.htm Thank you. Davide 2017-06-01 22:45 GMT+02:00 Chris Fedde <ch...@fedde.us>: > first you want to be sure that your host can connect to the remote host > onn the right port. You can use the telnet command to do that > > telnet server port > > where server is the name for the server in your /etc/hosts file and port > is the port number on the remote where sybase is listening. > iirc the default for sybase is 2638. Also iirc DBD::Sybase expects > freeTDS to be installed and configured. > > good luck > > On Thu, Jun 1, 2017 at 2:08 PM, Paul M via beginners <beginners@perl.org> > wrote: > >> I have a hosts entry that points to a specific IP address. It does not >> appear that DBI:Sybase:server uses the /etc/hosts file? Is this correct? >> Ping works fine in shell. >> How would I point a server name to different IP addresses locally? >> What does DBI use for name resolution? >> >> Thanks! >> > >