How do I get the naked domain for my site that is typed into a browser (example.com) to automatically redirect to www.mywebsite.com. Would this be done on the internal IIS web server or through the registration service DNS settings?   I use Register.com and I tried asking their technical support, but they did not answer my question with a usable solution.
122978
We have a website that has two URLs (one for the US side and another for the Canadian side which is then broken into Canadian English and Canadian French). For the purposes of my question,  I will write as:   www.us_url.com (US) www.canada_url.ca/ca_en/ (Canadian English) www.canada_url.ca/ca_fr/ (Canadian French)   To make sure people are on the correct site, what do I do if they go to the US URL with Canadian English content (e.g. www.us_url.com/ca_en/canada.asp) but I want to make sure the URL is the Canadian one (e.g. www.canada_url.ca/ca_en/canada.asp) so it shows up properly in Google Analytics.  We're using IIS 7 and classic ASP.
21027
Does anyone have a regular expression handy that will match any legal DNS hostname or IP address?  It's easy to write one that works 95% of the time, but I'm hoping to get something that's well tested to exactly match the latest RFC specs for DNS hostnames.
30200
For the sake of discussion, pretend that I have an Apache webserver which serves a website at www.example.org. This domain name resolves to the public IP address at 192.168.1.100 (pretend this is a public IP).  The discussion at  demonstrates that anyone can point their domain at my IP. Apache won't prevent this by default, but an administrator can deal with these one at a time through use of a blacklist.  However, it's becoming more common for scammers to register dozens of domains (or more) for use in a scam. I'm concerned about the following possible attack:   A scammer registers hundreds of domain names, and points them at my dedicated IP address. The scammer directs search engines at their scam domains, thus using my content to increase their standing in the search engines. Later, the scammer moves their domain names to point to their own servers which host a scam/porn, or a competing business, etc. thereby reaping the benefits of their standing in the search engines. Some of these domains might be used to in  as well. Profit!!   I believe I have seen scammers using this trick in the past, involving dozens of domains. We didn't realize the scam implications at the time, and assumed these were misconfigured domains.  Is there a term for this nefarious SEO trick? SEO masquerading? DNS Diversion?  How could I prevent this using Apache? I'm considering a "whitelist" fix based on using a default VirtualHosts, ServerNames &amp; ServerAliases so that Apache only responds to requests where these white-listed ServerNames appear in the "Host: " header. Everything else would be rejected (or redirected to a particular page). However, I am unsure if this is the best approach.  For example, I've configured the domain  to point at the IP for Serverfault.com. You can see the results here:  .
2352
This is a  about Active Directory domain naming.   After experimenting with Windows domains and domain controllers in a virtual environment, I've realized that having an active directory domain named identically to a DNS domain is bad idea (Meaning that having example.com as an Active Directory name is no good when we have the example.com domain name registered for use as our website).   , but I'm still not sure about what other rules there are around naming Active Directory domains.  Are there any best practices on what an Active Directory name should or shouldn't be?
72337
I've got a domain that I apparently forgot to set a preferred domain for, so I just tried to do it. Webmaster Tools instead popped up a little box:     Part of the process of setting a preferred domain is to verify that you own http://www.example.com/. Please verify http://www.example.com/.   I'm running into some problems following these instructions:   As far as I can tell I already did verify sometime in the past. There's a TXT DNS record with the gibberish Google tells you to set for it that I couldn't have come up with myself. …and nothing is telling me this information is bad. So let's assume the site is somehow not actually verified. All  instructions start with "click the Manage Site button next to the site you want, and then click Verify this site." That button doesn't even exist on my screens. (It presumably goes away when you successfully verify?) Those instructions were all updated pretty recently, and the DNS one in particular just a couple weeks ago so it seems a bit unlikely they're inaccurate.   I am not using Apps, and won't be, so can't try out the verification .   Note that I also have another domain that I have not done any verification for which is showing the same behavior(no such button, being told to verify when it seems impossible etc.) so something appears to just be broken.  I already have a no-www process in place server-side, so we can skip that. I'm just trying to get the box checked off in GWT.  If I don't get any resolution, I'll eventually scrap the TXT record and see if the site gets un-verified(or whatever since it thinks it isn't), and see if I can just restart the process.  It's not urgent so I'm just trying to figure out if I've gone blind to something or what. Did the button move?
60017
I am not much familiar with server configurations, please help me on this issue:  I have a Debian8 server and a SSL certificate, the SSL certificate only for My non-www domain so I would like to redirect all of www request into non-www, by below htaccess code its working for some browsers but not working for some other  On Chrome: Successfully redirecting http://www.example.com or http://example.com request into https://example.com this is what I want for all browsers.  On Mozilla: Redirecting http://www.example.com request into https://www.example.com and stopped working with INSECURE CONNECTION error. I think from here browser checking first for SSL certificate of www and stop before non-www redirect.   Following is my .htaccess to redirect www to non www with https, is anything I missed on .htaccess? or any other solution through DNS or with help of apache default ssl.conf.  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]  RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]   My SSL certificate is  and I followed this tutorial to install  you could see there is only one domain prompting that is non-www, no option for setting SSL certificate for www. If I could get a SSL certificate for www then also I can solve the issue.
109052
We are creating a web app that will have vanity subdomains such as user1.example.com. Since we'll have many subdomains, they need to be dynamic. We want to have a public "stage" area where we can test before going live. The requirement states that all dns names start with stage.  I'm using an AWS load balancer so I have to use a CNAME. Research on google and here tell me that wildcards are supported in DNS CNAME entries (except perhaps when using godaddy) but I haven't yet convinced myself that you can have a wildcard in the middle of an entry.  Is stage.*.example.com valid for a wildcard DNS CNAME and would it work as I'd expect?  Thanks!
76243
How do I create subdomain like  ? Do i have to access htaccess somehow? Is it actually simply possible to create it via pure php code or I need to use some external script-server side language?  To those who answered: Well, then, should i ask my hosting if they provide some sort of DNS access??
4595
I want to block certain URLs on browsers. I don't want to block whole site. For example, I want to block , but not whole  domain. Is there any way I can do it?
116725
I've just read  which essentially says that when I set up DNS for example.com, the root record can't be a CNAME, it has to be an A record.  My question is, why?   I'm sure the clever people who designed DNS didn't make arbitary restrictions for no reason, but I don't see what we gain by requring root domains to be A records. I would love to just point my example.com domain to someserver.somewebhost.example and forget about it, but I can't.  Please enlighten me, billpg.
64193
We are changing domain name but the website is staying exactly the same. We are 301 redirecting every page.  We believe that we wouldn't have to create a new property in analytics or tag manager as everything is the same but the domain name.  In Search Console would we not just use the change of address tool?
40061
When specifying DNS information for a domain (e.g. in the registrar control panel) one can use nameservers which are subdomains of the domain. For example, if I have a domain example.com, I can set nameservers "ns1.example.com 1.1.1.1" and "ns2.example.com 1.1.1.2" (IP-addresses are mandatory). What is the process of resolving the name ns1.example.com?
99149
When I type mynewdomain.com into my browser I believe the following happens.   My computer sends a request to my ISP's name servers to find the IP address of mynewdomain.com My ISP name server sends a request to the "." name server. The "." sends a response back to the ISP name server, saying try using the com. nameserver. My ISP name server sends a request to the com. nameserver. The com. nameserver finds mynewdomain.com. and sends my ISP nameserver back the A record. My ISP nameserver sends this back to my computer.    My question is about step 5. How does mynewdomain.com. get into the list on the com. nameserver? And given that there are hundreds of millions of registered .coms, how does it find mine in such a short time?
38636
I want to redirect all requests from example.com to www.example.com.   Preferably, this should happen at DNS level. I tried using PTR records, but that simply fails, returning a 404.  wwww.example.com is an ALIAS for an Elastic Load Balancer.  What’s the simplest way to achieve this?
5338
I'd like to know if any certificates support a double wildcard like *.*.example.com? I've just been on the phone with my current SSL provider (register.com) and the girl there said they don't offer anything like that and that she didn't think it was possible anyway.   Can anyone tell me if this is possible, and if browsers support this?
47845
We have a ton of alternate domain names. What is the best strategy as far as SEO strategy is concerned? Do we want to 301 redirect them all to our primary domain or set up simple landing pages that link to the main site?
101853
I recently received the following message from Google Webmaster Tools:     Dear site owner or webmaster of ,      [...]      Below are one or more example URLs on your site which may be part of a   phishing attack:            [...]   What I don't understand is that I never had a subdomain repair.gotgenes.com, but visiting it in the web browser gives an actual  My DNS is , which does not list a repair subdomain. My domain name is registered with GoDaddy, and the nameservers are correctly set to NS1.AFRAID.ORG, NS2.AFRAID.ORG, NS3.AFRAID.ORG, and NS4.AFRAID.ORG.  I have the following questions:   Where is repair.gotgenes.com actually registered? How was it registered? What action can I take to have it removed from DNSs? How can I prevent this from happening in the future?   This is pretty disconcerting; I feel like my domain has been hijacked. Any help would be much appreciated.