Questions tagged [domain-name]
A domain name is a string of characters that identifies a realm of authority within a Domain Naming System (DNS).
514
questions
513
votes
19
answers
657k
views
Get The Current Domain Name With Javascript (Not the path, etc.)
I plan on buying two domain names for the same site. Depending on which domain is used I plan on providing slightly different data on the page. Is there a way for me to detect the actual domain name ...
303
votes
21
answers
779k
views
Nginx 403 error: directory index of [folder] is forbidden
I have 3 domain names and am trying to host all 3 sites on one server (a Digital Ocean droplet) using Nginx.
mysite1.name
mysite2.name
mysite3.name
Only 1 of them works. The other two result in 403 ...
235
votes
2
answers
217k
views
Linux command to translate domain name to IP [closed]
Is there any Linux command to translate a domain name to an IP address?
176
votes
22
answers
399k
views
What is a regular expression which will match a valid domain name without a subdomain?
I need to validate a domain name:
google.com
stackoverflow.com
So a domain in its rawest form - not even a subdomain like www.
Characters should only be a-z | A-Z | 0-9 and period(.) and dash(-)
...
104
votes
11
answers
96k
views
What's the best method in ASP.NET to obtain the current domain?
I am wondering what the best way to obtain the current domain is in ASP.NET?
For instance:
http://www.domainname.com/subdir/ should yield http://www.domainname.com
http://www.sub.domainname.com/...
91
votes
14
answers
26k
views
WWW or not WWW, what to choose as primary site name? [closed]
From technical perspective the only issue is traffic and incoming links (one of them should redirect to another).
Now I need to choose which one should be primary. Some sites have www (google, ...
86
votes
2
answers
341k
views
PHP get domain name [duplicate]
I want to get the domain name for where the script is running. How can that be done with PHP?
I see that $_SERVER['HTTP_HOST'] as well as $_SERVER['SERVER_NAME'] contain this information.
Will that ...
85
votes
17
answers
245k
views
How to get page URL or hostname in NextJs Project?
I want to get the page's full URL or site hostname like the image below on Static Site Generator.
I will try with window.location.hostname, but it doesn't work.
The error: window not defined.
78
votes
3
answers
101k
views
How to obtain Domain name via JavaScript? [duplicate]
Is there a way to obtain the domain name of the current page by using javascript in a browser (IE, FireFox, etc) ?
70
votes
8
answers
72k
views
Are email addresses allowed to contain non-alphanumeric characters?
I'm building a website using Django. The website could have a significant number of users from non-English speaking countries.
I just want to know if there are any technical restrictions on what ...
59
votes
4
answers
54k
views
Get domain name from an email address
I have an email address
[email protected]
I want to get the domain name from the email address. Can I achieve this with Regex?
42
votes
20
answers
130k
views
How to validate domain name in PHP?
Is it possible without using regular expression?
For example, I want to check that a string is a valid domain:
domain-name
abcd
example
Are valid domains. These are invalid of course:
domaia@name
...
39
votes
4
answers
15k
views
How to use naked GoDaddy domain with OpenShift hosting? [closed]
Desired Behaviour
I have a GoDaddy domain name and am using OpenShift for hosting.
I would like the following to be true:
a) user enters www.mysitename.com > user sees mysitename.com
b) user ...
38
votes
18
answers
79k
views
Get domain name (not subdomain) in php
I have a URL which can be any of the following formats:
http://example.com
https://example.com
http://example.com/foo
http://example.com/foo/bar
www.example.com
example.com
foo.example.com
www.foo....
37
votes
6
answers
134k
views
Using Domain name instead of localhost in with https in xampp
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....
32
votes
3
answers
4k
views
Measure the pronounceability of a word?
I'm tinkering with a domain name finder and want to favour those words which are easy to pronounce.
Example: nameoic.com (bad) versus namelet.com (good).
Was thinking something to do with soundex ...
30
votes
11
answers
155k
views
How can I find the version of php that is running on a distinct domain name?
How can I find the version of php that is running on a distinct server with distinct domain name? (like www.abc.com) It is not my server, no ftp access for making a php file with this code:
<?php
...
28
votes
2
answers
13k
views
Sinatra - how do I get the server's domain name
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, ...
26
votes
2
answers
65k
views
How to get DOMAIN name from SQL Server?
I tried using EXEC sp_who2; to find the server's domain name, but it gives host, users, etc.
I need to know my SQL Server's domain name, so I can install a plugin to the SQL Server Management Studio.
25
votes
6
answers
9k
views
What is the advantage of having a domain name (spotilocal) that resolves to 127.0.0.1?
Not sure if this is best suited to Programmers, Server Fault or Stack Overflow. It's not, however, a question about developing for Facebook.
Facebook recently announced tighter integration with ...
25
votes
2
answers
2k
views
Why domain names are backwards? [closed]
I realize that this question might not make sense to some, but I was just curious of why the domain names built starting from most specific and ending with most global identifier.
www.google.com
[...
24
votes
2
answers
19k
views
Mysterious CloudFront "Bad request"
I've set up a new domain and web server, and a CloudFront distribution to serve it.
CloudFront is successfully serving the site on its own domain: d1lnegrqin0up5.cloudfront.net
I want mpe.io (...
22
votes
7
answers
48k
views
What top-level domains does youtube have? [closed]
I am trying to identify youtube link (generally), and I wonder what top-level domains is youtube using?
So far I know about:
.com (youtube.com)
.be (youtu.be)
Are there any others?
PS: for those ...
22
votes
1
answer
19k
views
How do I associate my domain name with my AWS applications?
I've just starting using the Amazon Web Services (AWS) and I'm still learning about how it works and what features it provides. I have successfully built two of the sample Java webapps and uploaded ...
22
votes
2
answers
11k
views
Are IDN domain names case-sensitive?
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 "...
20
votes
13
answers
27k
views
SQL: Sorting By Email Domain Name
What is the shortest and/or efficient SQL statement to sort a table with a column of email address by it's DOMAIN name fragment?
That's essentially ignoring whatever is before "@" in the email ...
18
votes
1
answer
6k
views
What is the correct term for apex/naked/bare/root domain names?
When you search term Apex Domains on Google Search, the top page you get is https://help.github.com/en/articles/about-supported-custom-domains, which explains the concept as:
An apex domain is a ...
17
votes
4
answers
20k
views
Where can I purchase .app TLD? [closed]
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).
17
votes
4
answers
8k
views
Method to detect a parked page?
Anyone know of a way to programatically detect a parked web page? That is, those pages that you accidentally type in (or intentionally sometimes) and they are hosted by a domain parking service with ...
16
votes
2
answers
24k
views
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 ...
16
votes
4
answers
12k
views
How to get fully qualified domain name on Windows in Delphi
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" ...
14
votes
5
answers
28k
views
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....
14
votes
3
answers
16k
views
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 ...
13
votes
7
answers
29k
views
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<String> cases = new ArrayList<String>();
cases.add("www....
12
votes
2
answers
14k
views
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 ...
11
votes
5
answers
21k
views
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 ...
11
votes
4
answers
4k
views
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 ...
10
votes
3
answers
8k
views
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....
10
votes
5
answers
13k
views
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. ...
10
votes
3
answers
28k
views
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 '...
9
votes
1
answer
21k
views
Get domain name from URL in Java/Android [duplicate]
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/...
9
votes
2
answers
10k
views
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 ...
9
votes
1
answer
1k
views
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 ...
9
votes
0
answers
4k
views
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;
...
8
votes
3
answers
16k
views
Trying to set up a .ka domain name
I'm trying to set up a domain with the .ka suffix for a URL shortener for a project I'm working on. Similar to drbl.in for example. I've checked online and this suffix doesn't seemed to registered to ...
8
votes
3
answers
12k
views
InvalidChangeBatch 400: "" is not a valid hosted zone id. is not a valid encrypted identifier when attempting to add A record to existing domain
I am attempting to point my domain to my S3 bucket
When I attempt to create an A record on my domain I get the following error in Route53 console:
Error occurred
Alias Target contains an invalid value....
8
votes
3
answers
10k
views
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 ...
8
votes
3
answers
12k
views
WHOIS command not returning useful information?
Nowadays, whenever you use WHOIS command doesn't return any usefully information. I usually have to go to Godaddy, Dnsstuff or other services to get the data. I understand the reason is mostly due to ...
8
votes
2
answers
33k
views
Changing domain name from localhost to custom name in Visual Studio
I am new to MVC and I just created one MVC4 test project in VS 2010, it runs perectly but the url is http://localhost:60826/ I wanted to change it to http://my.test.site or at least http://my.test....
8
votes
2
answers
7k
views
More than one top level domain?
In a normal URL, you have a protocol, subdomains (optional), domain name, top level domain and subdirectories.
For example: http://www.google.com/path. Here www is subdomain, google is domain name ...