Skip to main content

DNS Setup

Local network DNS records and resolution testing.

  • On your local router create new DNS entries for each host
    • For example, on a fortigate device navigate to Network > DNS Servers > DNS Zone > DNS Entries > Create New
    • Add each:
IP AddressName
192.168.30.200dev
192.168.30.201dev-lb-v1
192.168.30.203dev-m-v1
192.168.30.206dev-w-v1
192.168.30.208dev-ansible
192.168.30.209dev-template

SSH to the linked VM's

SSH to each of the VM's and keep their sessions open

Load balancer

  • SSH to load balancer: ssh dev@dev-lb-v1.reids.net.au
  • Edit the hostfile, changing the loopback and adding the cluster: sudo vi /etc/hosts
127.0.1.1 dev-lb-v1
192.168.30.200 dev dev.reids.net.au

Master node

  • SSH to master node: ssh dev@dev-m-v1.reids.net.au
  • Edit the hostfile, changing the loopback and adding the cluster: sudo vi /etc/hosts
127.0.1.1 dev-m-v1
192.168.30.200 dev dev.reids.net.au

Worker node

  • SSH to worker node: ssh dev@dev-w-v1.reids.net.au
  • Edit the hostfile, changing the loopback and adding the cluster: sudo vi /etc/hosts
127.0.1.1 dev-w-v1
192.168.30.200 dev dev.reids.net.au

Ansible

  • SSH to ansible: ssh dev@dev-ansible.reids.net.au
  • Edit the hostfile, changing the loopback and adding the cluster: sudo vi /etc/hosts
127.0.1.1 dev-ansible
192.168.30.200 dev dev.reids.net.au
192.168.30.201 dev-lb-v1 dev-lb-v1.reids.net.au
192.168.30.203 dev-m-v1 dev-m-v1.reids.net.au
192.168.30.206 dev-w-v1 dev-w-v1.reids.net.au