setting up help DA

wazburn

Verified User
Joined
Nov 26, 2011
Messages
70
im setting up my dedicated migrating from Cpanel , and I was given these by my DC


Code:
Server IP Address: 208.94.244.194
Server Usable IP Range: 208.94.244.194 - 208.94.244.198
Subnet Mask: 255.255.255.248
Gateway Address: 208.94.244.193


Here are our internal DNS server addresses. These can be used for domain name
resolution only, not as your name servers.

[B]DNS1[/B]: 208.94.242.3
[B]DNS2[/B]: 208.94.243.3

I followed the guide by DA on start.
im confused on where to use these DNS1, DNS2

in mydomain.com on godaddy
i setup
(using Server Usable IP Range??)
ns1 = 208.94.244.195
ns2 = 208.94.244.196

to have nameservers:
ns1.mydomain.com
ns2.mydomain.com

DA admin setup, I assign these to admin and set this way
208.94.244.194 <<< server
208.94.244.195 <<< ns1
208.94.244.196 <<< ns2


Problems are:
1. most of the time websites shows Problem loading page but sometimes its working and there are times it opens but the site is messed up missing database calls and tables anywhere.

2. MYDOMAIN.com shows problem loading page where it suppose to show the default Directadmin page first that says. (most of the time it does not open this page but sometimes it does)
"Welcome to the home of MYDOMAIN.com"

3. Accessing
MYDOMAIN.com:2222 = Failed
208.94.244.194:2222 = Opens the DA login
http://208.94.244.194 = Apache is functioning normally

4. Regarding the DNS1 and DNS2 should I use there IP in setting up ns1,ns2 instead??

checked directadmin,httpd,mysqld via ssh = running

Code:
[root@server httpd]# tail /var/log/directadmin/error.log
2011:11:27-09:59:25: Auth::passValid: unable to get user_info for neruban
2011:11:28-09:37:27: Unable to save zone mydomain.com: named-zonecheck returned:
loading "mydomain.com" from "/var/named/mydomain.com.db.temp" class "IN"
zone mydomain.com/IN: NS 'ns1.mydomain.com' has no address records (A or AAAA)
zone mydomain.com/IN: NS 'ns2.mydomain.com' has no address records (A or AAAA)
zone mydomain.com/IN: not loaded due to errors.
 
Here are our internal DNS server addresses. These can be used for domain name
resolution only, not as your name servers
.

DNS1: 208.94.242.3
DNS2: 208.94.243.3

You should put these IPs in /etc/resolv.conf as

Code:
nameserver 208.94.242.3
nameserver 208.94.243.3

See
Code:
man resolv.conf
for details.
 
2. MYDOMAIN.com shows problem loading page where it suppose to show the default Directadmin page first that says. (most of the time it does not open this page but sometimes it does)
"Welcome to the home of MYDOMAIN.com"


Show your real domain name, so we could check it out.
 
Check with this report and this one. Despite the fact you've a "Single point of failure", domain resolves OK.

For ns2.gorihosting.com the parent reported: ['208.94.244.195'] and your nameservers reported: ['208.94.244.196']

Nameserver records returned by the parent servers are:

ns1.gorihosting.com. ['208.94.244.196'] [TTL=172800]
ns2.gorihosting.com. ['208.94.244.195'] [TTL=172800]

NS records got from your nameservers listed at the parent NS are:

ns2.gorihosting.com ['208.94.244.196'] [TTL=14400]
ns1.gorihosting.com ['208.94.244.195'] [TTL=14400]
 
Check with this report and this one. Despite the fact you've a "Single point of failure", domain resolves OK.



Nameserver records returned by the parent servers are:

ns1.gorihosting.com. ['208.94.244.196'] [TTL=172800]
ns2.gorihosting.com. ['208.94.244.195'] [TTL=172800]

NS records got from your nameservers listed at the parent NS are:

ns2.gorihosting.com ['208.94.244.196'] [TTL=14400]
ns1.gorihosting.com ['208.94.244.195'] [TTL=14400]


Thanks. I corrected my mistakes for NS2 ip, intodns shows good result (im not sure).:)

for the error log how can I resolve this?:confused:
tried the forums suggestion and the KB help but didnt work.
Code:
[root@server ~]# tail /var/log/directadmin/error.log
2011:11:27-09:59:25: Auth::passValid: unable to get user_info for neruban
2011:11:28-09:37:27: Unable to save zone gorihosting.com: named-zonecheck returned:
loading "gorihosting.com" from "/var/named/gorihosting.com.db.temp" class "IN"
zone gorihosting.com/IN: NS 'ns1.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: NS 'ns2.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: not loaded due to errors.

This user and domain actually works and website also open [neru ban] dot com, but why does it shows this error?
Code:
2011:11:27-09:59:25: Auth::passValid: unable to get user_info for neruban


What problem could this be?
Code:
2011:11:28-09:37:27: Unable to save zone gorihosting.com: named-zonecheck returned:
loading "gorihosting.com" from "/var/named/gorihosting.com.db.temp" class "IN"
zone gorihosting.com/IN: NS 'ns1.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: NS 'ns2.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: not loaded due to errors.

my /var/named/gorihosting.com.db.temp:
Code:
$TTL 14400
@       IN      SOA     ns1.gorihosting.com.      hostmaster.gorihosting.com. (
                                                2011112900
                                                14400
                                                3600
                                                1209600
                                                86400 )

gorihosting.com.	14400	IN	NS	ns1.gorihosting.com.
gorihosting.com.	14400	IN	NS	ns2.gorihosting.com.

ftp	14400	IN	A	208.94.244.194
gorihosting.com.	14400	IN	A	208.94.244.194
localhost	14400	IN	A	127.0.0.1
mail	14400	IN	A	208.94.244.194
ns1.gorihosting.com.	14400	IN	A	208.94.244.195
ns2.gorihosting.com.	14400	IN	A	208.94.244.196
pop	14400	IN	A	208.94.244.194
smtp	14400	IN	A	208.94.244.194
www	14400	IN	A	208.94.244.194

gorihosting.com.	14400	IN	MX	10 mail



gorihosting.com.	14400	IN	TXT	"v=spf1 a mx ip4:208.94.244.194 ~all"

localhost	14400	IN	AAAA	::1
 
Try change this:

ns1.gorihosting.com. 14400 IN A 208.94.244.195
ns2.gorihosting.com. 14400 IN A 208.94.244.196

to

ns1 14400 IN A 208.94.244.195
ns2 14400 IN A 208.94.244.196

Regards
 
Actually i was talking about this error:
Code:
2011:11:28-09:37:27: Unable to save zone gorihosting.com: named-zonecheck returned:
loading "gorihosting.com" from "/var/named/gorihosting.com.db.temp" class "IN"
zone gorihosting.com/IN: NS 'ns1.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: NS 'ns2.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: not loaded due to errors.

Try make the edits described from da dns management or manually editing gorihosting.com.db file

Regards
 
Actually i was talking about this error:
Code:
2011:11:28-09:37:27: Unable to save zone gorihosting.com: named-zonecheck returned:
loading "gorihosting.com" from "/var/named/gorihosting.com.db.temp" class "IN"
zone gorihosting.com/IN: NS 'ns1.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: NS 'ns2.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: not loaded due to errors.

Try make the edits described from da dns management or manually editing gorihosting.com.db file

Regards


same error log result.
 
Check with this http://www.directadmin.com/features.php?id=1208

The solution is to add a check when creating a new domain.
DA will cycle through all NS records before they're written.
If any of the NS records are values within this zone, then DA will add those values to the zone to satisfy the named-zonecheck call.


If the A or AAAA records already exist (DA checks both short and long forms), it will not add the record.
If the IP is IPv6, DA will add it as an AAAA.

Note: The IP chosen for this will be that of the domain, foor both ns1 and ns2 values (whatever the NS records are set to use).
This means, if you need different IPs, you must set them later.
A note is added when creating the domain to ensure this is done.

Previously, no A records were added with ns1/ns2, but named-zonecheck wasn't called.
This didn't throw any errors, but the admin would need to add them later on anyway.
This is along the same lines, but allows for the named-zonecheck to still be used, and has more room for error if they happen to forget to add the A/AAAA records.


The workaround is of course to simply shut off the check:
named_checkzone=0
 
Or use:
Admin Level -> DNS Admin -> gorihosting.com -> Reset Defaults

Or manually add the A records for ns1/ns2.

Note that DA will check for missing ns1/ns2 A records if the NS values are for this zone.
It will add the ns1/ns2 A records, but I believe this only applies to domain creation.
If the A records are managed to be removed somehow (shouldn't happen due to the zone check), then you'd need to use one of the above suggestions.

John
 
Or use:
Admin Level -> DNS Admin -> gorihosting.com -> Reset Defaults

Or manually add the A records for ns1/ns2.

John

Admin Level -> DNS Admin -> gorihosting.com -> Reset Defaults
after reset this is what I get

Code:
Unable to save zone gorihosting.com: named-zonecheck returned:
loading "gorihosting.com" from "/var/named/gorihosting.com.db.temp" class "IN"
zone gorihosting.com/IN: NS 'ns1.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: NS 'ns2.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: not loaded due to errors.

2011:12:02-04:42:20: Added record ns1.gorihosting.com. A 208.94.244.194 to satisfy gorihosting.com. NS ns1.gorihosting.com.
2011:12:02-04:42:20: Added record ns2.gorihosting.com. A 208.94.244.194 to satisfy gorihosting.com. NS ns2.gorihosting.com.

Tried manually add the A records for ns1/ns2.
Same result as above.

dont know if its fixed tho.
 
Try restart named and check if the error remain.

Regards


manually added ns1 ns2

service named restart
service directadmin restart
same error log result as above


Tried deleting domain gorihosting.com, re add.
configure IP and nameserver,ns1,ns2
service named restart
service directadmin restart

error log result:
Code:
[root@server ~]# tail /var/log/directadmin/error.log
loading "gorihosting.com" from "/var/named/gorihosting.com.db.temp" class "IN"
zone gorihosting.com/IN: NS 'ns1.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: NS 'ns2.gorihosting.com' has no address records (A or AAAA)
zone gorihosting.com/IN: not loaded due to errors.

2011:12:02-04:42:20: Added record ns1.gorihosting.com. A 208.94.244.194 to satisfy gorihosting.com. NS ns1.gorihosting.com.
2011:12:02-04:42:20: Added record ns2.gorihosting.com. A 208.94.244.194 to satisfy gorihosting.com. NS ns2.gorihosting.com.
2011:12:02-06:03:53: ConfigFile::writeFile(/usr/local/directadmin/data/users/admin/ftp.passwd) : Timestamp from when it was read is different, overwriting anyway
2011:12:02-06:03:53: Added record ns1.gorihosting.com. A 208.94.244.194 to satisfy gorihosting.com. NS ns1.gorihosting.com.
2011:12:02-06:03:53: Added record ns2.gorihosting.com. A 208.94.244.194 to satisfy gorihosting.com. NS ns2.gorihosting.com.
 
could you please post result for:

Code:
ls -l /var/named/gorihosting.com.db*

Code:
[root@server ~]# ls -l /var/named/gorihosting.com.db*
-rw-r--r-- 1 root root 939 Dec  2 06:31 /var/named/gorihosting.com.db
 
Back
Top