why mssql resolve host address using dns service without using hosts file

Published: 14/01/2019
why mssql resolve host address using dns service without using hosts file
Source: STACKOVERFLOW.COM

I am using localhost as the host for my Django database, but I can't connect to it, it will run correctly when I use '127.0.0.1' as my database host. If I ping localhost.localhost will resolve to 127.0.0.1. But if I run nslookup localhost , my dns server will resolve localhost to another ip address. My pip freeze: Django==2.1.5 django-pyodbc-azure==2.1.0.0 djangorestframework==3.9.0 pyodbc==4.0

Read more
Related news
Comment