DNS

Registration

Follow these instructions to use a registered domain at Route 53 instead of example.ddns.net at NoIP as my apex domain.

  1. Add a CNAME record: homelab.markalston.net in Route 53 that points to mad03co.myddns.me hostname in NoIP

     dig homelab.markalston.net @8.8.8.8
    
     ; <<>> DiG 9.10.6 <<>> homelab.markalston.net @8.8.8.8
     ;; global options: +cmd
     ;; Got answer:
     ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9797
     ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
    
     ;; OPT PSEUDOSECTION:
     ; EDNS: version: 0, flags:; udp: 512
     ;; QUESTION SECTION:
     ;homelab.markalston.net.        IN    A
    
     ;; ANSWER SECTION:
     homelab.markalston.net.    59    IN CNAME    mad03co.myddns.me.
     mad03co.myddns.me.    59    IN    A    73.153.174.106
    
     ;; Query time: 63 msec
     ;; SERVER: 8.8.8.8#53(8.8.8.8)
     ;; WHEN: Tue Jul 02 08:18:02 MDT 2019
     ;; MSG SIZE  rcvd: 98
    

DNSMasq

Edit /srv/unifi/data/sites/default/config.gateway.json to update dns.

When the above is done, and you have provisioned your USG, you can ssh into your USG and check the following:

  • The dnsmasq process is running (ps -ef grep dnsmasq).
  • The following auto-generated files look good:
    • /etc/hosts
    • /etc/dnsmasq.conf
    • /etc/dnsmasq.d/dnsmasq-dhcp-config.conf (this one contains static host mappings)

Port Forwarding

Service Name Type Start Port End Port Server IP Server IPv6 Active
HTTP TCP 80 80 192.168.10.1    
PPTP TCP 1723 1723 192.168.10.1    
L2PT UDP 1701 1701 192.168.10.1    
L2PT2 UDP 4500 4500 192.168.10.1    
L2PT3 UDP 500 500 192.168.10.1    
HTTPS TCP 443 443 192.168.10.1    

Articles

Configure Synology DNS Service

https://community.ui.com/questions/SOLVED-Loopback-DNS-Synology-DiskStation/d41c2d86-b364-4823-a1a3-08cf93461050


This project is for educational and home lab purposes.