Hostname as nameserver

4 posts / 0 new
Last post
#1 Thu, 10/11/2012 - 05:00
BluesBrother

Hostname as nameserver

Hi all,

When I create a virtual server thru Virtualmin the aserver is created without any errors. However in DNS records I see that my hostname (server1.mydomain.com), not the nameservers I created (ns1.mydomain.com) is assigned as the primary nameserver to the created domain.

Here is the DNS record:

$ttl 38400
@ IN SOA server1.mydomain.com. root.server1.mydomain.com. (
1349890177
10800
3600
604800
38400 )
createddomain.com. IN NS ns2.mydomain.com.
createddomain.com. IN A 141.0.169.249
www.createddomain.com. IN A 141.0.169.249
ftp.createddomain.com. IN A 141.0.169.249
m.createddomain.com. IN A 141.0.169.249
localhost.createddomain.com. IN A 127.0.0.1
webmail.createddomain.com. IN A 141.0.169.249
admin.createddomain.com. IN A 141.0.169.249
mail.createddomain.com. IN A 141.0.169.249
createddomain.com. IN MX 5 mail.createddomain.com.
createddomain.com. IN TXT "v=spf1 a mx a:createddomain.com ip4:141.0.169.249 ~all

Thanks for the assistance

Thu, 10/11/2012 - 08:22
andreychek

Howdy,

Well, it's not likely to cause any problems... however, I believe it's assigning that name based on the value of System Settings -> Server Templates -> Default -> BIND DNS Domain -> Master DNS server hostname.

It will use your system's hostname by default, but you can change that to ns1.domain.com if you prefer.

-Eric

Thu, 10/11/2012 - 08:35
BluesBrother

Thanks for the response Eric

I thought this is some mistake I made when I created master dns zone. These are the A records I have:



Name TTL Address
server1.mydomain.com. Default xxx.xx.xxx.xxx
ns1.mydomain.com. Default xxx.xx.xxx.xxx
ns2.mydomain.com. Default xxx.xx.xxx.xxx

These are the NS records:


   Name TTL Name Server
server1.mydomain.com. Default ns1.mydomain.com.
server1.mydomain.com. Default ns2.mydomain.com.

Are these all ok?

Sat, 10/27/2012 - 20:39
PepinYaco

See if reading on this thread helps: http://www.virtualmin.com/node/22453

Topic locked