When adding a domainpointer DNS records created with owned and server ip-adres

yozzie

Verified User
Joined
Nov 29, 2005
Messages
12
When i add a domainpointer to a user with an owned IP adres the DNS records created are for both the Server shared IP and the owned IP.
See the reult at the bottom of this message where i replaced the ip-adresses with 1.1.1.x

Second problem which ocurs is when i delete the mydomain.com A-records and want to add a new mydomain.com. A-record i get an error message, see below.

Does anyone have this same problem and if so does anyone know a solution?

A-record error message
Cannot Add Record
Details
The full format name entered does not end with the name of the zone


DNS records after adding the domain-pointer:

ftp A 1.1.1.101
ftp A 1.1.1.102
localhost A 127.0.0.1
mail A 1.1.1.101
mail A 1.1.1.102
mydomain.com. A 1.1.1.101
mydomain.com. A 1.1.1.102
pop A 1.1.1.101
pop A 1.1.1.102
smtp A 1.1.1.101
smtp A 1.1.1.102
www A 1.1.1.101
www A 1.1.1.102
mydomain.com. NS ns1.x.nl.
mydomain.com. NS ns2.x.nl.
mail MX 10
mydomain.com. TXT "v=spf1 a mx ip4:1.1.1.101 ~all"
 
Hello,

Check:
/usr/local/directadmin/data/users/username/user.conf
/usr/local/directadmin/data/users/username/user_ip.list
/usr/local/directadmin/data/users/username/domains/domain.com.conf
/usr/local/directadmin/data/users/username/domains/domain.com.ip_list

Ensure only the IP you want is listed there.
For the conf files, check the ip= value to ensure it's the value you want.

Once the duplicate IPs are removed, type:
Code:
cd /usr/local/directadmin
echo "action=rewrite&value=httpd" >> data/task.queue
./dataskq d200
which should rewrite the httpd.conf to remove duplicates.

The dns zone will likely need manual removal... unless you've followed these steps, in which case you can skip everything above and go to:
User Level -> Domain Setup -> domain.com

and simply delete the extra IP from the domain.

John
 
John,

Thanks for the instructions, in the domain.com.ip_list was the "old" server shared ip. After removing it everything seems to work fine.

thanx.
 
Hey John,

Still i get an error when i want to add: domain.com. A record in the domain pointer.

A-record error message
Cannot Add Record
Details
The full format name entered does not end with the name of the zone

Do you have any idea what that could be, when i add it with the "parent" domain-name is accepts the DNS record.
 
The logic with that error is:

1) The "name" of the record (the value on the left) ends in a period
2) The trailing value (before the period) does not match the domain name.

Example:
zone name: zone.com

A record being added, any of:
sub.notzone.com. A 1.2.3.4
notzone.com. A 1.2.3.4

where notzone.com doesn't match zone.com.

John
 
John,

I know the a record must be zone.com. But still i get the error. I even tried to copy the existing record, paste it in the input field. Copy the ip and paste it in the input field. Then clicked add and instead of getting a duplicate record i get the error message.

Situation: mainzone.com with a domainpointer zone.com, when i manage the dns of zone.com i get this error. When managing zone.com and add the a record mainzone.com. I dont get the error message and the record mainzone.com is added to the dns records of zone.com.

I hope you understand what i try to explain.
 
Hello,

Adding the record of "mainzone.com" has no business in the zone of zone.com. Adding it there won't do anything as it would never be found. Domain pointers have their own zones, and records for other domains/pointers don't belong in different domains' zones.

Somewhat beside the point.. instead of adding:
sub.domain.com A 1.2.3.4

you can add:
sub A 1.2.3.4

which will essentially make "sub.domain.com." as long as the zone is domain.com.
Again, adding sub.pointer.com. or pointer.com. into the zone for domain.com is not correct as named will never find that record. Pointer.com has it's own dns zone, which is where you'd add "sub".

John
 
John,

I fully understand that. I think i'm making my explanaition of the problem to difficult. I want to change the ip of de zone.com record. So i need to re-add the record. Then i get the error.
 
Hello,

Alright, that's much clearer.

1) So to confirm, you're going to:

Admin Level -> DNS Administration -> domain.com

2) You've deleted the A record of "domain.com."

3) You're adding:
domain.com. A 1.2.3.4

and get the error?

I've just tested this on one of our build system (CentOS 4 32-bit), and it seemed to work fine.

Let me know if you're doing anything differently, or if I'm missing something.

John
 
John,

Thats exatly what i'm doing. Keep in mind that it worka fine for the 'main' domain an that the error only occurs for the domain pointer i added as an alias.

Note: the main domain is on a 'own' ip, not the shared server ip.
 
Hello,

Ah thanks, that cleared it up for me.

You're not doing:
Admin Level -> DNS Administration -> domain.com

You're doing:
User Level -> Domain Pointers -> DNS/Manage for the pointer.com

That's what I need. Bug found and fixed.
Available for the next release of DA.

John
 
Back
Top