Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2006-05-16 04:03:16
Size: 608
Editor: rowlf
Comment:
Revision 7 as of 2012-03-26 23:37:33
Size: 4761
Editor: JonCo
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
 Creative Internal DNS
 1. Connect to {{{muppets.crecom.com.au}}}
 1. {{{su}}} to root
 1. {{{vi /home/named/var/named/zone/internal}}}
 1. Update date field on line 3 in the following format: YYYYMMDDHH
 1. Update appropriate DNS record
 1. Save {{{internal}}} , and quit to command line
 1. Execute the following commands
== Creative External DNS ==
 * Connect to {{{muppets.crecom.com.au}}}
 * {{{su}}} to root
 * {{{for crecom.com.au vi /home/named/var/named/zone/crecom}}}
 * {{{for creativecomputing.com.au vi /home/named/var/named/zone/creative}}}
 * {{{for creativeretailsystems.com vi /home/named/var/named/zone/creativeretail}}}
 * {{{for creativeretailsystems.com.au vi /home/named/var/named/zone/creativeretailau}}}
 * Update date field on line 3 in the following format: YYYYMMDDHH
 * Update appropriate DNS record
 * Save {{{<filename>}}} , and quit to command line
 * Execute the following commands
{{{
 /etc/init.d/named restart
}}}
Which will perform the following functions automatically:

{{{
 /etc/init.d/named-vpn stop
 /etc/init.d/named-internal stop
 /etc/init.d/named-external restart
 /etc/init.d/named-internal start
 /etc/init.d/named-vpn start}}}
== Changing nameserver IP ==
Since we are not using portable IP addresses, the IP's we use will change when we switch to a different internet service provider (ISP). The old ISP will take back their IP, which our NS is pointing to, and we will get a new set of IP's. Before this change happens, it is good practice to lower the Time to live (TTL) of all our zones to a really low value (5 minutes is a good rule of thumb) and then wait for your old TTL to expire. In this example, the 2 86400 (in seconds = 1 day) lines should be changed to 300 (5 minutes).

{{{
@ 86400 IN SOA muppets.crecom.com.au. hostmaster.crecom.com.au. (
                        2007021311 ; serial (Year,Month,Day,Hour/increment)
                        28800 ; refresh
                        14400 ; retry
                        360000 ; expire
                        86400) ; default_ttl}}}
And like with any other DNS changes, do not forget to update the serial number. Once this is done. Log into our registrar www.crazydomains.com.au. Our login is "crecom" password is funky. Load the "Manage Domain Names" screen. Click on the domain you want to edit (one at a time) and click on "Update Name Servers". You can delete some or all of the NS records and add your new ones. You would have to delete and add the IP address of your NS records if changing ISP(as of this writing, we only have muppets.crecom.com.au for all our domains). Unlike other registrars, my experience shows that updates happen almost instantly. Use whois/dig to verify that the change is done:

{{{
$ whois creativecomputing.com.au
  ...... snipped .......
Name Server: ns2.afraid.org
Name Server: muppets.crecom.com.au
Name Server IP: 220.233.135.250
}}}
In this query the whois database creativecomputing.com.au, which reads 220.233.135.250. If this is the new IP, it means the change is successful. If this is the old IP, continue waiting. If it does not change (after 48 hours), and you don't get any emails, it means that something has stuffed up (note, when I did this multiple times, it happened almost instantly, within a minute of pressing OK). Once this is complete, modify the A record (of muppets.crecom.com.au) to read the new IP once the change has taken place. This will be a good time to update all the other records as well. Let a few days pass and verify that everything is working as expected and change the TTL back to 86400.

=== FreeDNS ===
We have set up an external DNS hosting service called FreeDNS. Under normal circumstances there would be no need to change this. But if we are changing IPs or adding a domain, you have to log in and use the web front end to change things accordingly. Open up their website at http://freedns.afraid.org. Our login name is CComputing2. Password is funky. After logging in and going into "Backup DNS", you will see a list of domains that we have set up. To add a new domain, click the Add button and enter muppets' IP adddress as the master. You can also change this IP by clicking on it on the list (When changing ISPs). In a few minutes (usually around 5-10), FreeDNS's servers will transfer records from our master DNS (muppets) and serve them.

== Creative Internal DNS ==
 * Connect to {{{muppets.crecom.com.au}}}
 * {{{su}}} to root
 * {{{vi /home/named/var/named/zone/internal}}}
 * Update date field on line 3 in the following format: YYYYMMDDHH
 * Update appropriate DNS record
 * Save {{{internal}}} , and quit to command line
 * Execute the following commands

Creative External DNS

  • Connect to muppets.crecom.com.au

  • su to root

  • for crecom.com.au vi /home/named/var/named/zone/crecom

  • for creativecomputing.com.au vi /home/named/var/named/zone/creative

  • for creativeretailsystems.com vi /home/named/var/named/zone/creativeretail

  • for creativeretailsystems.com.au vi /home/named/var/named/zone/creativeretailau

  • Update date field on line 3 in the following format: YYYYMMDDHH
  • Update appropriate DNS record
  • Save <filename> , and quit to command line

  • Execute the following commands

 /etc/init.d/named restart

Which will perform the following functions automatically:

 /etc/init.d/named-vpn stop
 /etc/init.d/named-internal stop
 /etc/init.d/named-external restart
 /etc/init.d/named-internal start
 /etc/init.d/named-vpn start

Changing nameserver IP

Since we are not using portable IP addresses, the IP's we use will change when we switch to a different internet service provider (ISP). The old ISP will take back their IP, which our NS is pointing to, and we will get a new set of IP's. Before this change happens, it is good practice to lower the Time to live (TTL) of all our zones to a really low value (5 minutes is a good rule of thumb) and then wait for your old TTL to expire. In this example, the 2 86400 (in seconds = 1 day) lines should be changed to 300 (5 minutes).

@       86400   IN      SOA     muppets.crecom.com.au.  hostmaster.crecom.com.au. (
                        2007021311 ; serial (Year,Month,Day,Hour/increment)
                        28800 ; refresh
                        14400 ; retry
                        360000 ; expire
                        86400) ; default_ttl

And like with any other DNS changes, do not forget to update the serial number. Once this is done. Log into our registrar www.crazydomains.com.au. Our login is "crecom" password is funky. Load the "Manage Domain Names" screen. Click on the domain you want to edit (one at a time) and click on "Update Name Servers". You can delete some or all of the NS records and add your new ones. You would have to delete and add the IP address of your NS records if changing ISP(as of this writing, we only have muppets.crecom.com.au for all our domains). Unlike other registrars, my experience shows that updates happen almost instantly. Use whois/dig to verify that the change is done:

$ whois creativecomputing.com.au
  ...... snipped .......
Name Server:                     ns2.afraid.org
Name Server:                     muppets.crecom.com.au
Name Server IP:                  220.233.135.250

In this query the whois database creativecomputing.com.au, which reads 220.233.135.250. If this is the new IP, it means the change is successful. If this is the old IP, continue waiting. If it does not change (after 48 hours), and you don't get any emails, it means that something has stuffed up (note, when I did this multiple times, it happened almost instantly, within a minute of pressing OK). Once this is complete, modify the A record (of muppets.crecom.com.au) to read the new IP once the change has taken place. This will be a good time to update all the other records as well. Let a few days pass and verify that everything is working as expected and change the TTL back to 86400.

FreeDNS

We have set up an external DNS hosting service called FreeDNS. Under normal circumstances there would be no need to change this. But if we are changing IPs or adding a domain, you have to log in and use the web front end to change things accordingly. Open up their website at http://freedns.afraid.org. Our login name is CComputing2. Password is funky. After logging in and going into "Backup DNS", you will see a list of domains that we have set up. To add a new domain, click the Add button and enter muppets' IP adddress as the master. You can also change this IP by clicking on it on the list (When changing ISPs). In a few minutes (usually around 5-10), FreeDNS's servers will transfer records from our master DNS (muppets) and serve them.

Creative Internal DNS

  • Connect to muppets.crecom.com.au

  • su to root

  • vi /home/named/var/named/zone/internal

  • Update date field on line 3 in the following format: YYYYMMDDHH
  • Update appropriate DNS record
  • Save internal , and quit to command line

  • Execute the following commands

 /etc/init.d/named restart

Which will perform the following functions automatically:

 /etc/init.d/named-vpn stop
 /etc/init.d/named-internal stop
 /etc/init.d/named-external restart
 /etc/init.d/named-internal start
 /etc/init.d/named-vpn start

DNS (last edited 2022-08-29 06:33:21 by 110-174-147-10)