Questions tagged [domain-name]

A domain name is a string of characters that identifies a realm of authority within a Domain Naming System (DNS).

A domain name is a string of characters that identifies a realm of authority within a Domain Naming System (DNS). They serve as human-friendly pointers to IP addresses and other resources that host various services like HTTP/HTTPS, SMTP, IMAP, SIP, etc. Domain names can be (and are) used on private networks, but they are an integral component of the modern Internet.

510 questions
15
votes
2 answers

Best way to determine if a domain name would be a valid in a "hosts" file?

The Windows Hosts file allows you to associate an IP to a host name that has far greater freedom than a normal Internet domain name. I'd like to create a function that determines if a given name would be a valid "host" file domain name. Based on…
Jeff Moser
  • 19,727
  • 6
  • 65
  • 85
13
votes
7 answers

Extract main domain name from a given url

I used the following to extract the domain from a url: (They are test cases) String regex = "^(ww[a-zA-Z0-9-]{0,}\\.)"; ArrayList cases = new…
chnet
  • 1,993
  • 9
  • 36
  • 51
13
votes
3 answers

Minimum Length for Domain Name

I need to make validation for domain name length in my PHP programming. Can you please suggest me min and max length required for domain name. I tried to find out in google but I am unable to find out proper solution for it.
Vipul Jethva
  • 647
  • 1
  • 7
  • 27
13
votes
5 answers

How to get the base URL of the website VB.NET

I may not be the first person to ask this question but I can't find what I was looking for after looking around. I want to get base URL from the URL. I have tried HttpContext.Current.Request.Url.AbsoluteUri It would return me the full URL …
Laurence
  • 7,633
  • 21
  • 78
  • 129
12
votes
2 answers

Which is more secure for a cookie: __Host prefix or setting the Domain?

They both appear to lock the cookie to a domain, but they are not compatible (in that the use of the __Host prefix necessitates the Domain not being set). I haven't found a good argument which is the better way to go. I realize that using the…
iolympian
  • 469
  • 1
  • 4
  • 19
11
votes
5 answers

Check for a valid domain name in a string?

I am using python and would like a simple api or regex to check for a domain name's validity. By validity I am the syntactical validity and not whether the domain name actually exists on the Internet or not.
demos
  • 2,630
  • 11
  • 35
  • 51
11
votes
4 answers

How do I register domain names programmatically?

Any domain name registrars out there that support domain name registration using a web service or a similar functionality without them telling you to become a reseller? I don't register that many domain names and I am not interested in paying…
Abdu
  • 16,129
  • 13
  • 59
  • 84
10
votes
3 answers

Extract registered domain from URL based on Public Suffix List

Given a URL, how do I extract the registered domain using the Public Suffix List (list of effective TLDs, e.g. this list)? For instance, considering a.bg is a valid public suffix: http://www.test.start.a.bg/hello.html -> start.a.bg…
ilhan
  • 8,700
  • 35
  • 117
  • 201
10
votes
5 answers

Can I register a .it domain name for a company outside of Italy?

I've got a domain name that would work nicely with a .it domain name (e.g. redd.it). This is for a web application I'm building, which if it ever generates revenue will be for a company in the US. Is this allowed?
Kevin Pang
  • 41,172
  • 38
  • 121
  • 173
10
votes
3 answers

Verify a domain name in Azure Active Directory

I have added a domain name to my Azure Active Directory account, but it says that the domain name is unverified. In order to to verify the domain name, I go into my 'default directory' and go to the 'Domains' tab, where I can see my whatever.com…
Brett Rigby
  • 6,101
  • 10
  • 46
  • 76
9
votes
2 answers

Can multiple domains point to the same Azure web app?

I'm using Azure for my website and I have 2 domain names that I would like to use for the same site. For example, I want these 2 domains www.abc.com and www.abc.asia to be the same website (not redirected). Such that www.abc.com/contactus and…
Kaiyan Leong
  • 99
  • 1
  • 8
9
votes
0 answers

Nginx - The connection was reset?

I have Ngnix installed on my host at Linode. I have the config below: server { listen 80; server_name example.co.uk www.example.co.uk; location / { root /usr/share/nginx/html; index index.html index.htm; …
Run
  • 54,938
  • 169
  • 450
  • 748
9
votes
1 answer

Running Google App Engine application on multiple customer domains

I want to allow my company’s customers to integrate our Google App Engine application into their domains. For example, let’s say one customer owns the domain coolcustomer.com and wants to make our app accessible at service.coolcustomer.com. This…
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
9
votes
1 answer

Get domain name from URL in Java/Android

In my app, I need to get the favicon.ico from a URL. (eg. "http://google.com/favicon.ico"). Users can input all kinds of URLs, and I need only the domain name. Examples: http://drive.google.com/bla/bla/bla -> drive.google.com www.facebook.com/lol…
hansottowirtz
  • 664
  • 1
  • 6
  • 16
8
votes
3 answers

Configuring Ubuntu Server so Node.Js app (port 3000) is served at a particular domain server address

I've built a node.js-express app. By default it is listening on port 3000. I have the system hosted on an EC2 instance and have pointed a domain's A record to the AWS elastic IP address. I'd like for HTTP requests to the domain name to…
Alex C
  • 16,624
  • 18
  • 66
  • 98
1 2
3
33 34