Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: DNS question, maybe
- To: tlug@example.com
- Subject: Re: DNS question, maybe
- From: Jake Morrison <jake_morrison@example.com>
- Date: Fri, 4 May 2001 22:01:26 -0700 (PDT)
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <20010502160034.A10736@example.com>
- Reply-To: Jacob.Morrison@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <pfZsmC.A.7jD.ok486@example.com>
- Resent-Sender: tlug-request@example.com
I used to keep a simple set of DNS files in my back pocket in case I needed them when setting up a demo on a site. They are set up to run DNS for a subdomain and redirect everything else to a primary server for the domain. Maybe this will be useful as an example. Feel free to ask me if you have any questions (not that I am a DNS guru...). One common cause for confusion is forgetting to increment the serial number (e.g., 1998021301 below) when you update the files. You might get a copy of "Unix System Administration Handbook, 3rd ed" by Evi Nemith, et. al. It has a good chapter on setting up DNS, and will help with a lot of other little things. Regards, Jake ---- /etc/resolv.conf search SUB.MYCOMPANY.com MYCOMPANY.com nameserver 129.179.13.207 nameserver 129.179.17.10 nameserver 129.179.17.11 ---- /etc/named.boot ; type domain source host/file backup file directory /etc/named.d ;domain SUB.MYCOMPANY.com primary SUB.MYCOMPANY.com named.hosts cache . named.ca primary 13.179.129.IN-ADDR.ARPA named.hosts.rev primary 0.0.127.IN-ADDR.ARPA named.local forwarders 129.179.17.10 129.179.17.11 ---- /etc/named.d/named.ca ; Initial cache data for root domain server ; ;. 99999999 IN NS MACHINE.COMPANYNAME.com. ; Prep the cache (hotwire the addresses). ;MACHINE.COMPANYNAME.com. 99999999 IN A 127.0.0.1 . 99999999 IN NS NS.INTERNIC.NET. ; ; Prime the cache, hotwire the addresses NS.INTERNIC.NET. 99999999 IN A 198.41.0.4 ---- /etc/named.d/named.local ; reverse localhost, origin is 0.0.127.IN-ADDR.ARPA. @ IN SOA MYHOST.SUB.MYDOMAIN.com root.MYHOST.SUB.MYDOMAIN.com ( 1998021301 ; Serial 43200 ; Refresh 12 hours 10800 ; Retry 3 hours 3600000 ; Expire 1000 hours 86400 ) ; Minimum 24 hours IN NS MYHOST.SUB.MYDOMAIN.com. 1 IN PTR localhost.MYHOST.SUB.MYDOMAIN.com. IN CNAME localhost IN CNAME localhost. ---- /etc/named.d/named.hosts ; Authoritative data for domain ; @ IN SOA SUB.MYCOMPANY.com. root.SUB.MYCOMPANY.com ( 1998021401 ; Serial 43200 ; Refresh 12 hours 10800 ; Retry 3 hours 3600000 ; Expire 1000 hours 86400 ) ; Minimum 24 hours IN NS MYHOST.SUB.MYCOMPANY.com. IN A 129.179.13.207 MYHOST IN A 129.179.13.207 loghost IN CNAME MYHOST localhost IN A 127.0.0.1 MYHOST IN A 129.179.13.207 loghost IN CNAME MYHOST hosta IN A 129.179.13.231 ; The MX record points to the domain mailserver hostb IN A 129.179.13.111 IN MX 10 MYHOST.SUB.MYCOMPANY.com. ---- /etc/named.d/named.hosts.rev ; Reverse address mapping @ IN SOA SUB.MYCOMPANY.com root.SUB.MYCOMPANY.com ( 1998021302 ; Serial 43200 ; Refresh 12 hours 10800 ; Retry 3 hours 3600000 ; Expire 1000 hours 86400 ) ; Minimum 24 hours IN NS MYHOST.SUB.MYCOMPANY.com. 207 IN PTR MYHOST.SUB.MYCOMPANY.com. 231 IN PTR hosta.SUB.MYCOMPANY.com. 111 IN PTR hostb.SUB.MYCOMPANY.com. __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
- References:
- Re: DNS question, maybe
- From: Jim Tittsler <jwt-tlug@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Ergonomic keyboards
- Next by Date: LinuxWorld entrance ticket
- Prev by thread: Re: DNS question, maybe
- Next by thread: RFC 1149
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links