These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for What is wrong with this nameserver setup? on the new forum.
Hi,
I'm fresh Virtualmin user. I have a domain that astrolojikozmik.com and I want to use it as a nameserver and as a website.
That is my dns records from virtualmin:
$ttl 38400
@ IN SOA server1.astrolojikozmik.com. root.server1.astrolojikozmik.com. (
1373355168
10800
3600
604800
38400 )
@ IN NS server1.astrolojikozmik.com
astrolojikozmik.com. IN A 37.139.6.247
www.astrolojikozmik.com. IN A 37.139.6.247
ftp.astrolojikozmik.com. IN A 37.139.6.247
m.astrolojikozmik.com. IN A 37.139.6.247
server1.astrolojikozmik.com. IN A 37.139.6.247
ns2.astrolojikozmik.com. IN A 37.139.6.247
localhost.astrolojikozmik.com. IN A 127.0.0.1
mail.astrolojikozmik.com. IN A 37.139.6.247
astrolojikozmik.com. IN MX 5 mail.astrolojikozmik.com.
astrolojikozmik.com. IN TXT "v=spf1 a mx a:astrolojikozmik.com ip4:37.139.6.247 ?all"
astrolojikozmik.com. IN NS ns2.astrolojikozmik.com.
And I marked as a name server from my registrar server1.astrolojikozmik.com and ns2.astrolojikozmik.com..
server1.astrolojikozmik.com and astrolojikozmik.com shows same site...
What is wrong with this?
Thank you for all responses.
What's the problem exactly?
Hi Locutus,
http://server1.astrolojikozmik.com and http://ns2.astrolojikozmik.com (My nameservers) goes to http://www.astrolojikozmik.com (My main site) and I dont want that.
Howdy,
If a domain isn't defined in Apache, then Apache will process the request using the default domain.
Your two options would be to either create those domains in Virtualmin, and setup your preferred websites in them -- or to set a different website as the default.
To set the default website, go into Server Configuration -> Website Options, and set "Default website for IP address" to "Yes".
-Eric