I am getting strange behavior with mssql_connect().
The computer running MS SQL Server is listening on 2 IP addresses: ComputerA on 172.31.250.5 and sql_server on 172.31.250.6.
PHP calling odbc_connect() to ComputerA works.
PHP calling mssql_connect() to ComputerA.example.com works.
PHP calling mssql_connect() to 172.31.250.5 works.
PHP calling odbc_connect() to sql_server works.
PHP calling mssql_connect() to sql_server.example.com produces: Unable to connect to server: sql_server.example.com.
PHP calling mssql_connect() to 172.31.250.6 works.
ASP.NET can also connect to either ComputerA or sql_server.
The web server computer can successfully resolve the host name to IP address; ping works.
Why is mssql_connect() to "sql_server" failing?