What is wrong with this nameserver setup?


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. (
38400 )
@ IN NS server1.astrolojikozmik.com
astrolojikozmik.com. IN A
www.astrolojikozmik.com. IN A
ftp.astrolojikozmik.com. IN A
m.astrolojikozmik.com. IN A
server1.astrolojikozmik.com. IN A
ns2.astrolojikozmik.com. IN A
localhost.astrolojikozmik.com. IN A
mail.astrolojikozmik.com. IN A
astrolojikozmik.com. IN MX 5 mail.astrolojikozmik.com.
astrolojikozmik.com. IN TXT “v=spf1 a mx a:astrolojikozmik.com ip4: ?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.


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”.