reverse-dns

Reverse DNS lookup in perl

时光总嘲笑我的痴心妄想 提交于 2020-01-12 06:59:26
问题 How do I perform a reverse DNS lookup, that is how do I resolve an IP address to its DNS hostname in Perl? 回答1: gethostbyaddr and similar calls. See http://perldoc.perl.org/functions/gethostbyaddr.html 回答2: If you need more detailed DNS info use the Net::DNS module, here is an example: use Net::DNS; my $res = Net::DNS::Resolver->new; # create the reverse lookup DNS name (note that the octets in the IP address need to be reversed). my $IP = "209.85.173.103"; my $target_IP = join('.', reverse

Reverse DNS lookup in perl

心不动则不痛 提交于 2020-01-12 06:59:06
问题 How do I perform a reverse DNS lookup, that is how do I resolve an IP address to its DNS hostname in Perl? 回答1: gethostbyaddr and similar calls. See http://perldoc.perl.org/functions/gethostbyaddr.html 回答2: If you need more detailed DNS info use the Net::DNS module, here is an example: use Net::DNS; my $res = Net::DNS::Resolver->new; # create the reverse lookup DNS name (note that the octets in the IP address need to be reversed). my $IP = "209.85.173.103"; my $target_IP = join('.', reverse

How to get a reverse DNS? [closed]

老子叫甜甜 提交于 2020-01-07 08:02:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . all my mails to GMX and WEB come back with the response of spam potential. I'm searching in google and I found, that I need a reverse DNS. My DNS configuration: $TTL 86400 @ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. ( 2016110200 ; serial 14400 ; refresh 1800 ; retry 604800 ; expire 86400 ) ; minimum

Swift 3 - CFHostScheduleWithRunLoop crash

时间秒杀一切 提交于 2019-12-25 09:10:09
问题 I am doing a reverse DNS in Swift, my previous code on Swift 2.2 was working fine, also I have implemented it in Objective-C and it works to. However I am not able to make it works in Swift 3.0 Swift 2.2 //: Let's set up the `sockaddr_in` C structure using the initializer. var sin = sockaddr_in( sin_len: UInt8(sizeof(sockaddr_in)), sin_family: sa_family_t(AF_INET), sin_port: in_port_t(0), sin_addr: in_addr(s_addr: inet_addr(ip)), sin_zero: (0,0,0,0,0,0,0,0) ) //: Now convert the structure

What are Android SyncAdapter contentAuthority and accountType?

旧时模样 提交于 2019-12-22 05:26:19
问题 I'm creating a custom Android SyncAdapter and hit a snag following the SDK example "SampleSyncAdapter". - I'm creating my equivalent of the xml/syncadapter.xml . Here's the parts I'm confused about: android:contentAuthority="com.android.contacts" android:accountType="com.example.android.samplesync" The documentation of AbstractThreadedSyncAdapter states: The android:contentAuthority and android:accountType attributes indicate which content authority and for which account types this sync

How should a PTR DNS record look like when using default Azure server for reverse DNS?

試著忘記壹切 提交于 2019-12-13 08:55:22
问题 I'm trying to add a PTR record (reverse DNS) in Azure, but I'm not sure what should be the value in the PTR DNS record, My azure settings are: DNS NAME people-dns.cloudapp.net HOST NAME people-dns PUBLIC VIRTUAL IP (VIP) ADDRESS 137.117.11.18 INTERNAL IP ADDRESS 100.68.96.97 The DNS name points to the mail server... I understand that I don't need to run any PowerShell commands if I'm using the default DNS name (but maybe I'm wrong?) I was simply adding a PTR record (using Google Domains) with

How to verify that Azure Reverse DNS is working properly?

雨燕双飞 提交于 2019-12-13 04:25:44
问题 I just got a static IP and ran the command below to get a reserved DNS: Set-AzureService -ServiceName "people-dns" -Description "people-dns reverse DNS" -ReverseDnsFqdn "people-dns.cloudapp.net." Now if I run Get-AzureService it shows: ReverseDnsFqdn : people-dns.cloudapp.net. How can I verify that it is working properly? (it would be nice to automate this test so I can know if it stops working too) UPDATE : I found web sites that can check like http://mxtoolbox.com but I like to know how

Python Sockets: gethostbyaddr : Reverse DNS Lookup Failure

我只是一个虾纸丫 提交于 2019-12-12 23:42:12
问题 I've been having a problem with getting the host name while using socket.gethostbyaddr(ip_addr) on specific sites. I will not go into detail about which site this is not working for. so getting the host by name works fine for every site I've tried so far , but then when I try to get the site name from I get an error say ing host not found . A fix or an alternative would be nice for this to have complete data. If there is no fix I can merely leave out the host name. no biggie. Thanks for the

How can I enable reverse DNS lookups with kube-dns on pod IP?

谁说我不能喝 提交于 2019-12-12 21:39:44
问题 is it possible to do a reverse DNS lookup from one pod to another in the same namespace on Kuberenetes? Setup: Kubernetes 1.5, kube-dns 1.9 When I exec a pod with nslookup I don't get a hostname but only a nslookup timeout like: $ time kubectl exec mypod -- nslookup 172\.18\.14\.13 nslookup: can't resolve '(null)': Name does not resolve Name: 172.18.14.13 Address 1: 172.18.14.13 real 0m5.592s mypod2 does have the internal IP 172.18.14.13. Both mypod and mypod2 have been deployed to the same

Reverse dns lookup with scapy in python

点点圈 提交于 2019-12-10 15:15:42
问题 How can I do reverse DNS lookup using scapy in Python? I look for it in Google but I couldn't find related to this topic. 回答1: Reverse DNS is already written into Python's Socket module. Simply use the following: >>> import socket >>> socket.gethostbyaddr("69.59.196.211") ('stackoverflow.com', ['211.196.59.69.in-addr.arpa'], ['69.59.196.211']) Which was originally posted here, Python lookup hostname from IP with 1 second timeout, by https://stackoverflow.com/users/81179/christophed 回答2: Ok. I