Results 1 to 7 of 7
-
08-24-2007, 12:38 PM #1Junior Guru
- Join Date
- May 2004
- Posts
- 237
Setup name server for a website ?
Hi everyone,
I've been setting up name server for my website. I'm using Centos 5, but never get it works.
Here what i have done so far:
yum install named
Then i create named.conf in /etc
PHP Code:options {
version "Version Secured";
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
recursion no;
};
logging {
category lame-servers { null; };
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
include "/etc/rndc.key";
zone "glueg99.com" { type master; file "/var/named/glueg99.com.db"; };
PHP Code:
$TTL 14400
@ IN SOA ns1.glueg99.com. root.glueg99.com. (
2007081300
14400
3600
1209600
86400 )
glueg99.com. 14400 IN NS ns1.glueg99.com.
ftp 14400 IN A 209.99.56.22
localhost 14400 IN A 127.0.0.1
mail 14400 IN A 209.99.56.22
pop 14400 IN A 209.99.56.22
glueg99.com. 14400 IN A 209.99.56.22
www 14400 IN A 209.99.56.22
glueg99.com. 14400 IN MX 10 mail
glueg99.com. 14400 IN TXT "v=spf1 a mx ip4:209.99.56.22 ?all"
PHP Code:[root@v named]# service named restart
Stopping named: [FAILED]
Starting named:
Error in named configuration:
zone localhost/IN: loading master file localhost.zone: file not found
_default/localhost/IN: file not found
zone 0.0.127.in-addr.arpa/IN: loading master file named.local: file not found
_default/0.0.127.in-addr.arpa/IN: file not found
zone glueg99.com/IN: loaded serial 2007081300
[FAILED]
-
08-24-2007, 01:15 PM #2Web Hosting Master
- Join Date
- Aug 2003
- Location
- Taiwan
- Posts
- 1,103
it should be
zone "." {
type hint;
file "named.ca";
};
without IN© www.hostinginside.com AS9678 √
© Taiwan Colocation and Dedicated Server
© Taiwan, Singapore, US, UK & Germany KVM Based VPS with RAID 10
-
08-24-2007, 01:33 PM #3Junior Guru
- Join Date
- May 2004
- Posts
- 237
the named is started but i got a error in dnsstuff.com
Code:Failed - No NS A records at nameservers WARNING: Your nameservers do not include any corresponding A records when asked for your NS records. They probably are not returning the A records when asked, which can prevent some other DNS servers from contacting your DNS servers. They should do this if they are authoritative for those A records (in BIND, you should not use 'minimal-responses yes;').
-
08-24-2007, 02:20 PM #4Disabled
- Join Date
- Oct 2005
- Posts
- 515
Did you create an A record for ns1.glueg99.com inside of /var/named?
-
08-24-2007, 02:59 PM #5Junior Guru
- Join Date
- May 2004
- Posts
- 237
thanks. I fixed it and it works now.
Last question, i don't really understand this message from dnsstuff
Code:WARNING: One or more of your DNS servers does not accept TCP connections. Although rarely used, TCP connections are occasionally used instead of UDP connections. When firewalls block the TCP DNS connections, it can cause hard-to-diagnose problems. The problem servers are: 209.99.56.22: Error [Connection refused (10061)].
-
08-24-2007, 03:05 PM #6Disabled
- Join Date
- Oct 2005
- Posts
- 515
Do you have a hardware/software firewall enabled on this server?
-
08-24-2007, 03:20 PM #7Junior Guru
- Join Date
- May 2004
- Posts
- 237