View Full Version : setting only 1 primary dns
pilpelet
11-14-2003, 08:15 PM
Hello ,
I need to configure only 1 DNS server and noticed that its not possible .
The DNS need to be main server to a secondary or more
name servers that will need to allow zone transfers between
all other servers . Basicly i get it that setting 2 ns's with 2 ips
that uses the same server is realy pointless and its actually
like 1 server , so my questune is : if its possible to creat only
1 DNS lets say that it will be the primary , also how is it possible to edit the other things on bind like soa , url redirect , etc..
Any suggetunes or steps will be great .
Thanks ,
DirectAdmin Support
11-14-2003, 08:31 PM
Hello,
If you have DNS control over the domain, you don't need to use the Nameserver settings at all. Just point the NS values to whichever server you need, and if required, add the ns1/ns2 A records. The DNS control is just one stop place to help speed things up.. in most cases.
John
pilpelet
11-14-2003, 08:52 PM
Hi ,
OK , that make sance , so let say im adding 2 A records to the root
DNS configuration of the domain to point to the DA server , will
the DA server act as a name server , i think that adding just
A record eg ns3 wont be enought and need a glua record or such
but im not sure .
P-s : possible bug , i just updated DA to the last version few hours ago .
Few minuts ago i needed to add a user/domain and it gave me
error "user allredy exists , canot creat user atc..."
The user with that name wasnt on the server at any point either
the domain , alias atc... realy odd .
Please advise ,
Thanks ,
DirectAdmin Support
11-15-2003, 03:06 PM
Hello,
1) Dns
If you are creating a nameserver, I recommend adding
ns1 A 1.2.3.4
ns2 A 1.2.3.4
domain.com. NS ns1.domain.com.
domain.com. NS ns2.domain.com.
(Note the periods always exist after the full name)
2) useradd bug
As root in ssh, try creating a test user with useradd:
/usr/sbin/useradd testuser
/usr/sbin/userdel -r testuser
If you get a segfault, read on:
If you are running RedHat 9.0 and have run up2date, there is an issue with useradd. I've created a patched RPM of shadow-utils to fix it. Note useradd was always bugged, but the bug didn't become apparent until some other libraries were changed.
http://files.directadmin.com/services/9.0/shadow-utils-4.0.3-6.i386.rpm
Type:
wget http://files.directadmin.com/services/9.0/shadow-utils-4.0.3-6.i386.rpm
rpm -ivh --force shadow-utils-4.0.3-6.i386.rpm
John
pilpelet
11-15-2003, 03:42 PM
Hi ,
Regarding the DNS , its kind of comlex so ill have to figure it out and see how to configure it . i dont think that adding simply ns1
+ ns2 and there A records would work couse there a need also to add a glue record on the domain itself on the root DNS of the registrar .
Regarding the bug fix , it became ok after rebooting DA so i wont
install the patch yet , is it important ? cause so far its ok .
Thnaks .
DirectAdmin Support
11-15-2003, 03:47 PM
Hello,
Only install the patched version if your /usr/sbin/useradd program generates a segfault when you run it manually. (This is what DA calls and is why you get the "user already exists" message.) If an error occurs, DA will assume that the users exists, but in this case the useradd program was dying a miserable death :)
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.