New Server Setup Question

jlandes

Verified User
Joined
Dec 1, 2005
Messages
561
Location
Lewistown, Pennsylvania, USA
Hello,

I followed the instructions located at http://www.directadmin.com/newinstall.html to setup the nameservers and the initial domain on a new server. The domain is landeserve.com and I created two nameservers ns1.landeserve.com and ns2.landeserve.com. The server's host name is da01.landeserve.com. I have a few questions.

1) Do I need to create an A record in the landeserve.com DNS zone for the host name?
2) Can you change the IP address of the main domain so that it is not using the same IP as the server?

Any thoughts?
 
jlandes said:
1) Do I need to create an A record in the landeserve.com DNS zone for the host name?
Each nameserver needs an A record in it's parent zone. It also needs to be registered as a nameserver with the domain registrar where the domain was set up.
2) Can you change the IP address of the main domain so that it is not using the same IP as the server?
Yes, you can use any IP# you want, as long as the server already answers to it.

Jeff
 
Thanks to the great folks at DirectAdmin, I was able to get this issue resolved. I was also able to change the IP address for the main site. Thanks DirectAdmin for your assistance. Here is a copy of my DNS zone for landeserve.com at this point:

Code:
[B]Name			Type	Value[/B]
da01			A	72.232.200.170
ftp			A	72.232.200.173
landeserve.com.		A 	72.232.200.173
localhost		A	127.0.0.1
mail			A	72.232.200.173
ns1.landeserve.com.	A	72.232.200.171
ns2.landeserve.com.	A	72.232.200.172
pop			A	72.232.200.173
www			A	72.232.200.173
landeserve.com.		NS	ns1.landeserve.com.
landeserve.com.		NS	ns2.landeserve.com.
mail			MX	10
landeserve.com.		TXT	"v=spf1 a mx ip4:72.232.200.173 ?all"

Do you see any problems with what I have so far? Also, should the TXT record use the IP address of the site or the IP of the server?

Thanks for your time.
 
jlandes said:
Also, should the TXT record use the IP address of the site or the IP of the server?
The txt record (actually an SPF record) should have the IP# that exim uses to send mail. Unless you've changed the default exim.conf file, that's the server's main site.

Jeff
 
Thanks Jeff. When I changed the IP address of the site, it changed the IP address in the TXT record as well. I thought that it should use the server's IP, but wanted to make sure before I changed it. I like DA so far, I'm just trying to get used to everything. :)
 
Okay. How can I change the DNS record? Do I need to delete and recreate it? I don't see a way in DA to modify it, but maybe I'm missing something.

Also, will I have to change this record each time I create a new domain that does not use the server's IP? Or, did this only happen because I changed the IP address of the site after it was initially created?
 
Last edited:
jlandes said:
Thanks Jeff. When I changed the IP address of the site, it changed the IP address in the TXT record as well. I thought that it should use the server's IP, but wanted to make sure before I changed it.
I think that's a bug. I'll discuss it with DA staff.

Jeff
 
jlandes said:
Okay. How can I change the DNS record? Do I need to delete and recreate it?
Individual records? Delete them and recreate them. I suggest strongly you create the new one before deleting the old one, and make sure they look the same (quotes, ending period, etc.) before you delete the old one.
I don't see a way in DA to modify it, but maybe I'm missing something.
Nope; you're right.
Also, will I have to change this record each time I create a new domain that does not use the server's IP? Or, did this only happen because I changed the IP address of the site after it was initially created?
As i wrote above, this looks like it may be a bug, because the spf record should use the IP# of the server, since that's what exim uses to send email.

Jeff
 
I think I've figured it out:
http://www.directadmin.com/features.php?id=720
If the site was originally on the server IP, doing an IP swap will also swap the spf record, which we don't want. I'll fix it for the next release.

Regular domain creation (without swapping) won't be affected, so you can create domains normally, it will always create the correct values in the spf record.

Also, if you were using any other IP than the server IP before you swap IPs, you won't be affected either.

John
 
Back
Top