|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Beginner talk
Hi guys,
I'm new in this forum, therefore hi to everyone! ![]() Usually I'm trying to find a solution by myself and a forum is my last resort of getting help. This time I'm challenged with setting up a dns server and I really cannot go any farther. Let's describe my problem. I just ordered a new root server and registered some domains, which were included in the package. What I'm trying to achieve is to have ftp.mydomain.com to serve as FTP connection address, svn.mydomain.com for SVN etc. When I ping mydomain.com I get a response. I also get a response when I ping whatevs.mydomain.com. Therefore I assume a nameserver is already configured properly. Rigth now I want to configure bind9 to handle all internal addresses properly. Where should I start? Any help will be appreciated. Thanks in advance! |
|
#2
|
||||
|
||||
|
Quote:
Welcome to Dev Shed. Handle all internal addresses how? Are you having problems with those on your local network resolving your domains? Please clarify what you're wanting. |
|
#3
|
|||
|
|||
|
Hi Hiker,
I'm a little bit farther now. I want to use my new server as a primary name server and my provider's name server as a secondary. Let's assume my server's ip is 1.2.3.4, my providers nameserver name is ns.provider.com . In my /etc/bind/named.conf.local I created a new zone for my domain: Code:
zone "mydomain.com" {
type master;
file "/etc/bind/db.mydomain.com";
};
In my /etc/bind/db.mydomain.com file I put: Code:
mydomain.com. IN SOA ns.mydomain.com. email. ( 2002121601 3H 15M 1W 1D ) 1.2.3.4 IN PTR mydomain.com. ftp.mydomain.com. IN CNAME mydomain.com. mydomain.com. IN NS ns.provider.com. mydomain.com. IN NS ns.mydomain.com. mydomain.com. IN A 1.2.3.4 ns.mydomain.com. IN A 1.2.3.4 www.mydomain.com. IN CNAME mydomain.com. In /etc/bind/named.conf.options I have: Code:
options {
directory "/var/cahce/bind";
notify yes;
listen-on port 53 { 1.2.3.4; };
allow-query { any; };
auth-nxdomain no;
listen-on-v6 { none; };
};
So far so good. named-checkconf does not return any errors, named-checkzone either. "dig @ns.mydomain.com mydomain.com any" returns status NOERROR as well. When I go to the http://zonecheck.denic.de/ though ns.mydomain.com timeouts. I think my problem is clearer now. Any help would be appreciated. |
|
#4
|
||||
|
||||
|
Have you listed the nameserver and DNS hosts at the registrar yet?
|
|
#5
|
|||
|
|||
|
I know i'm not providing a solution, but again it might help you to skim over this www_dot_zytrax_dot_com/books/dns/
|
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Beginner talk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|