|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
I'm a newbie to DNS so bear with me. My company host several websites that are registered at Register.com. The sites are currently using register.com's DNS servers which are:
dns5.register.com dns6.register.com What I want to do is replace Register.com's DNS server entries with my own (here below) for each of the sites we have registered there. ns1.mycompany.net ns2.mycompany.net I have just installed Red Hat Linux 8.0 on a machine we have here that is going to be our DNS server. I have seen some examples but like I said I'm new to the DNS world and could use some assitance. I running BIND version 9.1.2. The machine's IP address with Red Hat Linux 8.0 that will be the DNS server is (e.g. 67.1.2.3) The machine's IP address that has the web server with the sites on it is (e.g. 67.1.2.10) URL URL URL URL URL URL URL etc... i'm sure you get the picture. Here are the contents of my file db.mycompany.net in the /var/named directory: $TTL 3h mycompany.net. IN SOA ns1.mycompany.net. al.ns1.mycompany.net. ( 1 ;Serial 3h ;Refresh after 3 hours 1h ;Retry after 1 hour 1w ;Expire after 1 week 1h) ;Negative caching TTL of 1 day ; Name servers mycompany.net. IN NS ns1.mycompany.net. mycompany.net. IN NS ns2.mycompany.net. ; Addresses for the canonical names localhost.mycompany.net. IN A 127.0.0.1 ns1.mycompany.net. IN A 67.1.2.3 ns2.mycompany.net. IN A 67.1.2.4 ; Multi-homed hosts ;I not sure if I need this so it's none for now. ; Aliases server1.mycompany.net. IN CNAME ns1.mycompany.net. server2.mycompany.net. IN CNAME ns2.mycompany.net. ; Interface specific names ;I not sure if I need this so it's none for now. Here are the contents of my file db.67.1.2 in the /var/named directory: $TTL 3h 2.1.67.in-addr.arpa. IN SOA ns1.mycompany.net. al.ns1.mycompany.net. ( 1 ;Serial 3h ;Refresh after 3 hours 1h ;Retry after 1 hour 1w ;Expire after 1 week 1h) ;Negative caching TTL of 1 day ; Name servers 2.1.67.in-addr.arpa. IN NS ns1.eltran.net. 2.1.67.in-addr.arpa. IN NS ns2.eltran.net. ; Addresses for the canonical names 3.2.1.67.in-addr.arpa. IN PTR ns1.eltran.net. 4.2.1.67.in-addr.arpa. IN PTR ns1.eltran.net. Here are the contents of my file db.127.0.0 in the /var/named directory: $TTL 3h 0.0.127.in-addr.arpa. IN SOA ns1.mycompany.net. al.ns1.mycompany.net. ( 1 ;Serial 3h ;Refresh after 3 hours 1h ;Retry after 1 hour 1w ;Expire after 1 week 1h) ;Negative caching TTL of 1 day ; Name servers 0.0.127.in-addr.arpa. IN NS ns1.mycompany.net. 0.0.127.in-addr.arpa. IN NS ns2.mycompany.net. ; Addresses for the canonical names 0.0.127.in-addr.arpa. IN PTR localhost. Here are the contents of my file named.conf in the /etc directory: // generated by named-bootconf.pl options { 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; }; // // a caching only nameserver config // controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "eltran.net" IN { type master; file "db.eltran.net"; }; zone "14.92.67.in-addr.arpa" IN { type master; file "db.67.92.14"; }; zone "0.0.127.in-addr.arpa" IN { type master; file "db.127.0.0"; }; zone "." IN { type hint; file "db.cache"; }; zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; }; include "/etc/rndc.key"; I'm not real sure where in the files I need to add my 7 websites. If there are any shortcuts, loop-holes or pitfalls I should know about or watch out for please feel free to voice your knowledge. I know I'm asking for a bit much but assistance would be greatly appreciated! Dave |
|
#2
|
||||
|
||||
|
Quote:
Log into the control panel for mycompany.net and create those two name servers, with two IP addresses. This process varies between registrars, see http://cr.yp.to/djbdns/dot-com.html I question your use of BIND. It is over-complex,a nightmare to maintain, and has a woeful security history. Why not use tinydns? It'll make your life easier.
__________________
Alex (http://www.alex-greg.com) |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > DNS Configuration Help Please!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|