NSLOOKUP to iOS 9 device can't find host name - ios

[Updated]
I want to get an iOS device's host name by ip address from command line
I think I can use NSLOOKUP tool on Mac, but I'm getting
nslookup 10.0.1.2
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find 2.1.0.10.in-addr.arpa.: NXDOMAIN
The 10.0.1.2 is ip of an iPhone.
Is there any special on iOS for DNS host name resolution?

I think this may be what you are looking:
Swift:
UIDevice.currentDevice().name
ObjC:
[[UIDevice currentDevice] name];
Thanks

Related

Get https://abcd.azure.io/v2/: dial tcp: lookup abcd.azure.io on 192.168.65.1:53: no such host

I am not able to push docker image to azure container registry. It is giving the below error:
Get https://abcd.azure.io/v2/: dial tcp: lookup abcd.azure.io on 192.168.65.1:53: no such host
Tried below options but no luck:
restarted docker
turned off VPN
disconnected and connected wifi
enables google DNS (8.8.8.8)
Can anyone help me here what else could be done.
You can use the command line tools "dig" (Linux or Mac) or "nslookup" (Windows) to verify DNS settings.

PyCharm cannot use interpreter in server docker-machine(Channel disconnected before any data was reveived)

I am using MAC OS + PyCharm(for pro) and ubuntu16.04 server.
When I try to connect to the server's docker using local pycharm, I get the following error:
( Cannot connect: java.io.IOException: Channel disconnected before any data was reveived )
( I changed the docker daemon port. )
And, I tried searching for ports, and worked well.
Port Scanning host: 163.---.---.178
Open TCP Port: 7561
Even if I tried changing tcp to https, it gave an error.
How can I fix it?
1.set this item first, then reboot your laptop. Run pycharm as administrator, it works for me.

Unable to wget/curl from a kubernetes Pod with https/443

I am not able to curl/wget any URL with https. They're all giving connection refused errors. Here's what I've observed so far:
When I curl any URL with https from any pod, the domain gets resolved to the different IP address than the intended one. I verified this with dig domainname and curling the same domainname. Both IP's were different
For debugging purpose, I tried the same scenario from a kubelet docker container and it worked. But if I tried the same from another app container, it fails.
Any idea what might be wrong? I am sure, there is some issue with networking. Any more steps for debugging?
The cluster is setup with RKE on bare-metal which uses canal for networking.
The website I am trying to curl is updates.jenkins.io and here's the nslookup output
bash-4.4# nslookup updates.jenkins.io
Server: 10.43.0.10
Address: 10.43.0.10#53
Non-authoritative answer:
updates.jenkins.io.domain.name canonical name = io.domain.name.
Name: io.domain.name
Address: 185.82.212.199
And nslookup from the node gives
root#n4:/home# nslookup updates.jenkins.io
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
updates.jenkins.io canonical name = mirrors.jenkins.io.
Name: mirrors.jenkins.io
Address: 52.202.51.185
As far as I can see, it is trying to connect to io.domain.name and not updates.jenkins.io.
Further inspection, all domains ending with .io are causing the issue. Here'a another one:
bash-4.4# nslookup test.io
Server: 10.43.0.10
Address: 10.43.0.10#53
Non-authoritative answer:
test.io.domain.name canonical name = io.domain.name.
Name: io.domain.name
Address: 185.82.212.199
Well, there was some issue with /etc/resolv.conf. It was missing the correct nameserver entry. Once that was resolved, and the system components were restarted, everything was working.

Centos 7 minimal install can't talk to internet

Newbie trying to install/set up Centos 7. Can ping other machines in the domain, but can't ping gateway, google.com etc. Gets destination host unreachable for gateway and unknown host google.com when pinging google.com
Please advice.
etc/sysconfig/network-scripts:
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp4s0
iUUID=c39e3407-a566-4586-8fb9-fd4e3bfc4617
DEVICE=enp4s0
ONBOOT=yes
IPADDR="192.168.192.150"
GATEWAY="208.67.254.41"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=centos7
GATEWAY=208.67.254.41
Since it says unknown host google.com the machine is not able to route request to internet DNS server(8.8.8.8) to resolve google ip and when you ping the gateway it destination host not reachable
For a machine to connect to other machine their the machine should be within lan if not on lan then there should be a machine which acts a gateway machine within lan in your case you have pointed gateway to 208.67.254.41 obviously it is not on lan so this machine 208.67.254.41 should be accessible from some machine in lan to do so use route command
which add a routing entry in machines routing table
route add -host gw dev
In your case command goes like
route add -host 208.67.254.41 gw dev
eg : route add -host 192.168.12.45 gw 192.168.12.1 dev eth0
Comment entries if ipv6 is not used
Make sure to keep ip forwarding on in the gateway machine in /etc/sysclt.conf on gateway machine
Have you disabled Network Manager?
Command line:
service NetworkManager status

getting os name, ip address, mac address in java

How can I get OS name, IP Address, and Mac Address of remote host in same local area network using java.I have tried arp -a and nmap -O but it's not reliable . It does not work on windows.
Get OS name:
System.getProperty("os.name");
Get IP:
InetAddress.getLocalHost();
Not sure what you mean by 'Mac Address'

Resources