nslookup: *** Can't find server name - windows-xp

I am using nslookup command line tool from Windows XP but i can't see the IP of the DNS Server i am conducting. I am getting the message:
*** Can't find server name for address 192.168.1.1: Non-existent domain
*** Default servers are not available
How can i fix that?

Related

psql: could not translate host name "woken.c6dvrobkl4yw.us-east-2.rds.amazonaws.com" to address: Temporary failure in name resolution

psql: could not translate host name "woken.c6dvrobkl4yw.us-east-2.rds.amazonaws.com" to address: Temporary failure in name resolution
I am getting this error when i am trying to connect to aws via psql command.
how to resolve this issue any idea?
check if your instance has internet access & nameserver is properly configured it should not be pointing to 127.0.0.1

How to connect to a remote PostgreSQL server using pgAdmin and Unix Domain Socket over SSH tunneling

I want to connect to a remote PostgreSQL server from my Windows machine using pgAdmin.
Can I connect to the server using unix domain socket over SSH tunneling?
The PostgreSQL server and the tunneling SSH server are running on the same machine.
In pgAdmin documentation, the Host name/address field of the Server Dialog is explained as:
Specify the IP address of the server host, or the fully qualified domain name in the Host name/address field. If you provide a unix domain socket, the directory name must begin with a “/”.
so, I specified /var/run/postgresql in that field to use a unix domain socket, but the following error message appears:
Unable to connect to server:
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
This is the server machine's log:
systemd[1]: Started Session 28 of user ***.
sshd[630]: pam_unix(sshd:session): session opened for user *** by (uid=0)
sshd[634]: error: connect_to /var/run/postgresql: unknown host (Name or service not known)
sshd[630]: pam_unix(sshd:session): session closed for user ***
Of course, I can connect to the PostgreSQL server using a unix domain socket on the server machine.
The following psql command works.
$ psql -h /var/run/postgresql -U *** -d ***

i got an error in http :socketException : OS error : connection refused

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception:
SocketException: OS Error: Connection refused, errno = 111, address =
127.0.0.1, port = 36832
The TCP/IP connection to the host , port has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."
Test this by running the following command on a Windows Machine:
Test-NetConnection -Port 36832 -InformationLevel "Detailed"
You will get details similar to:
WARNING: TCP connect to (2a01:XXX:XXXX::XX: 36832) failed
THIS INDICATES THE PORT IS NOT OPEN
If you get something like:
AVERTISSEMENT : TCP connect to (13.107.4.52 : 36832) failed ComputerName : internetbeacon.msedge.net RemoteAddress : 13.107.4.52 RemotePort : 36832
THIS INDICATES A DNS ISSUE.
How to open ports in Windows 10 via Elevated Powershell Prompt:
https://winaero.com/blog/open-port-windows-firewall-windows-10/
How to resolve DNS issues in Windows 10 on Local and Remotes Hosts:
https://www.ghacks.net/2016/10/20/how-to-fix-resolving-host-issues-on-windows/
You can also verify DNS Issues with nslookup it runs on Linux, Mac, and Windows. You will have to most likely install the modules with Chocolatey, Brew, Yum, df, aptly, and other package managers that are used by the variety of flavors for Linux. Furthermore, you can look at the following for more information
http://techgenix.com/10-ways-troubleshoot-dns-resolution-issues/
https://devblogs.microsoft.com/scripting/use-powershell-to-troubleshoot-client-dns/
Other things you can try:
traceroute
tcpdump
nmap
Please check that the Firewall Rules are correct on both local and remote machines, furthermore ensure that you have the ability to connect via ipsec/firewall rules and that your Database is configured to accept incoming connection on that port.
netstat -tlnp

How to disable IPv4 and enable only IPv6 on arm Linux target?

I am testing bind9 dns server for AAAA records. I would like to disable IPv4 to stop dns requests going to my default ipv4 dns server.
In the resolv.conf i have added
domain mydomain.com
nameserver xxxx:xxxx:xxxx:xxxx:xxxx::xxxx
search mydomain.com
When I try to call
getaddrinfo("mydomain.com",NULL,&hints,&res);
to resolve the
domain name to IPv6 address , I see error message
"No Route to Host".
The same program can resolve to IPv6 address when i run on the Ubuntu PC.
I have tried to test
nslookup mydomain.com
server: 10.1.xx.xx
address 1: 10.1.xx.xx dnsserver.com
nslookup: can't resolve 'mydomain.com'
The nslookup command works correctly on Linux PC.
Is there any thing additional I need to do in the /etc/network. or else where?
Edit:
The issue is resolved with changes in the bind9 reverse zone configuration file.

Curl unable to resolve host (Localhost behind a proxy server)

Following exception was thrown while trying to execute $facebook->api('/me')
Uncaught CurlException: 6: Could not resolve host: (nil); Host not found thrown in C:\wamp\www\demo\php-sdk\base_facebook.php on line 1027
I figured out that my localhost was unable to resolve graph.facebook.com because my localhost runs on machine connected to my college network which is behind a proxy server.
One of the solutions I thought of that I need to forward all the requests made by my web application to my localhost to the network proxy server and then retrieve and process the result at localhost.
Kindly suggest how to proceed.