domain-name

How to get whois information of a domain name in my program?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 21:47:40
问题 I want to get whois information of a domain name from my c#/java programs. Is there a simple way to do this? 回答1: I think, the easiest way is a socket connection to a whois server on port 43. Send the domainname followed by a newline and read the response. 回答2: I found a perfect C# example on dotnet-snippets.com ( which doesn't exist anymore ). It's 11 lines of code to copy and paste straight into your own application. /// <summary> /// Gets the whois information. /// </summary> /// <param

How to find out programmatically if a domain name is registered or not

拟墨画扇 提交于 2019-12-03 14:55:13
问题 I use pywhois to determine if a domain name is registered or not. Here is my source code. (all permutations from a.net to zzz.net ) #!/usr/bin/env python import whois #pip install python-whois import string import itertools def main(): characters = list(string.ascii_lowercase) ##domain names generator for r in range(1, 4) : for name in itertools.permutations(characters, r) : #from 'a.net' to 'zzz.net' url = ''.join(name) + '.net' #check if a domain name is registered or not try : w = whois

Are IDN domain names case-sensitive?

懵懂的女人 提交于 2019-12-03 12:45:29
问题 Some people will reply that domain names are not case-sensitive. In the new Unicode world this is no longer true. (Source) I thought one of the steps in the Unicode > Punycode conversion was a "normalisation", which rendered domain names lower case. 回答1: For old-fashioned ASCII-based domain names, Yes, domain names have been and continue to be case-insensitive. For example, all of these represent the same domain: example.com Example.com EXAMPLE.COM EXampLE.com In modern DNS, we now have

How to get fully qualified domain name on Windows in Delphi

我的未来我决定 提交于 2019-12-03 11:34:08
问题 I need to get a fully qualified domain name for a Windows machine on a domain in Delphi. I've tried to use LookupAccountSid but it gives me only the netbios domain name, in my case it is "intranet" but I need the full "intranet.companyname.com" Any Ideas? 回答1: Try the GetUserNameEx Windows API function. const NameUnknown = 0; NameFullyQualifiedDN = 1; NameSamCompatible = 2; NameDisplay = 3; NameUniqueId = 6; NameCanonical = 7; NameUserPrincipal = 8; NameCanonicalEx = 9; NameServicePrincipal =

Sinatra - how do I get the server's domain name

爱⌒轻易说出口 提交于 2019-12-03 09:31:17
I'm trying to get the domain name in my Sinatra app but as a newbie I really am struggling to figure out how to do this, and I know it must be possible! Rack::Request#host_with_port looks promising, but I don't know how to get this from my app - how do I get stuff from Rack in my Ruby code? Or is there another way - I'm thinking I don't really want to do this every time a request happens (although it's not too bad), but I thought it'd be better if I could just do it once when the application loads up. Any hints? simply use request.host inside your code. get "/" do puts request.host #=>

Where can I purchase .app TLD? [closed]

余生颓废 提交于 2019-12-03 05:53:25
问题 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 4 years ago . Where can I purchase a .app Top Level Domain (TLD)? I've gone to Network Solutions, GoDaddy, etc and can't find someone who is selling .app domains (e.g. http://example.app). 回答1: Nowhere. The timeline given out by ICANN projects the new gTLDs won't be available until the beginning of 2013: http://en.wikipedia

How do you check if a domain name exists?

冷暖自知 提交于 2019-12-03 04:18:14
Not only easy ones like .com or .net, but also, .co.uk, .fr, .gov.rw ... ? Should I really make a huge mapping "tld to relevant whois server", or is there an easier way ? http://php.net/manual/en/function.checkdnsrr.php if (checkdnsrr('test.nl', 'A')) // or use ANY or for other see above link { echo 'Domain exists'; } else { echo 'Domain does not exist'; } http://whois.net/ any good? Ashutosh Singh-MVP SharePoint PHP: $URL = "http://www.dotnetindex.com/articles/5261-Article--AJAX-Tips-and-Tricks.asp"; $PARSED_URL = parse_url($URL); $DOMAIN = $PARSED_URL['host']; $ip = gethostbyname($DOMAIN);

Are IDN domain names case-sensitive?

我只是一个虾纸丫 提交于 2019-12-03 02:15:57
Some people will reply that domain names are not case-sensitive. In the new Unicode world this is no longer true. ( Source ) I thought one of the steps in the Unicode > Punycode conversion was a "normalisation", which rendered domain names lower case. For old-fashioned ASCII -based domain names , Yes, domain names have been and continue to be case-insensitive. For example, all of these represent the same domain: example.com Example.com EXAMPLE.COM EXampLE.com In modern DNS , we now have Internationalized Domain Names (IDN) which allows Unicode characters. The problem is that defining upper-

Using Domain name instead of localhost in with https in xampp

早过忘川 提交于 2019-12-02 16:46:06
My question may be stupid, But honestly I searched a lot and got success but not complete. I use xampp with windows 8. My host file looks as follows. 127.0.0.1 localhost 127.0.0.1 www.mysite.com My httpd-vhosts.config looks as follows. NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> DocumentRoot "C:/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost 127.0.0.1> ServerName www.mysite.com ServerAlias mysite.com DocumentRoot "C:/xampp/htdocs/mysite" </VirtualHost> This works perfect for http. But I have enabled ssl. When I type http://localhost or https://localhost , Both work fine.

Linux command to translate DomainName to IP [closed]

十年热恋 提交于 2019-11-30 10:20:12
问题 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 9 years ago . Is there any Linux command to translate domain name to IP? 回答1: % dig +short stackoverflow.com 69.59.196.211 or % host stackoverflow.com stackoverflow.com has address 69.59.196.211 stackoverflow.com mail is handled by 30 alt2.aspmx.l.google.com. stackoverflow.com mail is handled by 40 aspmx2.googlemail.com.