Hello, I can’t seem to get DNS recognizing my second domain.
Domain1 is danrempel.com, Domain2 is creative-ten.com. I have danrempel.com as my main domain, multisite is set up correctly and I can get subdomains to work perfectly. http://creative-ten.danrempel.com works. Once I set up domain mapping I can no longer access the site.
DNS just doesn’t seem to be working for whatever reason. Both domains are pointed to my nameservers.
Any help at all would be extremely appreciated!
DNS zone:</b<
$TTL 604800 @ IN SOA ns1.danrempel.com. admin.danrempel.com. ( 3 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; Website IP Address specified in A record danrempel.com. IN A 104.243.32.23 ; Name servers danrempel.com. IN NS ns1.danrempel.com. danrempel.com. IN NS ns2.danrempel.com. ; Mapping all Nameservers and their corresponding IPs ns1 IN A 104.243.32.23 ns2 IN A 104.243.32.23 ; Specify any subdomains and www entry here using CNAME record www IN CNAME danrempel.com. ftp IN CNAME danrempel.com. * IN A 104.243.32.23 ; Specify any subdomains *.danrempel.com. IN A 104.243.32.23 creative-ten.com. IN A 104.243.32.23 creative-ten.danrempel.com. IN A 104.243.32.23 ; Setup MX record danrempel.com. IN MX 10 mail ; set A record for mail mail IN A 104.243.32.23
My nginx server block:
server { # Uncomment the following line for domain mapping # listen 80 default_server; server_name danrempel.com *.danrempel.com creative-ten.com; # Uncomment the following line for domain mapping # server_name_in_redirect off; access_log /var/log/nginx/danrempel.com.access.log rt_cache; error_log /var/log/nginx/danrempel.com.error.log; root /var/www/danrempel.com/htdocs; index index.php index.html index.htm; set $cache_uri $request_uri; # POST requests and urls with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'NULL'; } if ($query_string != "") { set $cache_uri 'NULL'; } # Don't cache uris containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-$ set $cache_uri 'NULL'; } # Don't use the cache for logged in users or recent commenters if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") { set $cache_uri 'NULL'; } # Use cached or actual file if they exists, otherwise pass request to WordPress location / { try_files /wp-content/cache/page_enhanced${cache_uri}_index.html $uri $uri/ /index.php?$args; } location ~ .php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; } location ~* ^.+.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { access_log off; log_not_found off; expires max; } location = /robots.txt { access_log off; log_not_found off; } location ~ /. { deny all; access_log off; log_not_found off; } location ^~ /wp-content/w3tc- { deny all; access_log off; log_not_found off; } }
Nslookups:
root@vps:/etc/nginx/conf.d# nslookup danrempel.com ;; Got SERVFAIL reply from 8.8.8.8, trying next server Server: 8.8.4.4 Address: 8.8.4.4#53 Non-authoritative answer: Name: danrempel.com Address: 104.243.32.23 root@vps:/etc/nginx/conf.d# nslookup creative-ten.com ;; Got SERVFAIL reply from 8.8.8.8, trying next server Server: 8.8.4.4 Address: 8.8.4.4#53 ** server can't find creative-ten.com: SERVFAIL