changeset 53:8945bf71da22

make bang look to itself, not just to ISP, for projects.bigasterisk.com
author drewp@bigasterisk.com
date Wed, 06 Apr 2022 19:08:57 -0700
parents 5312645b615a
children 00d5cd21cade
files dns.py dns_check.py
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dns.py	Sun Mar 06 17:52:25 2022 -0800
+++ b/dns.py	Wed Apr 06 19:08:57 2022 -0700
@@ -46,6 +46,8 @@
                        net=net_name)
         systemd.service(service=f'dnsmasq_{net_name}', enabled=True, restarted=True, daemon_reload=True)
 
+    files.link('/etc/resolv.conf', '/run/systemd/resolve/stub-resolv.conf')
+
 if host.name in [
         'garage',
         'dash',
--- a/dns_check.py	Sun Mar 06 17:52:25 2022 -0800
+++ b/dns_check.py	Wed Apr 06 19:08:57 2022 -0700
@@ -32,8 +32,10 @@
     check('dash', '10.1.0.5')
 elif host.name in ['prime']:
     check('dash', '10.5.0.5')
+    check('projects.bigasterisk.com', '10.2.0.1')  # expected the public addr, but fine
 else:
     check('dash', '10.1.0.5')
+    check('projects.bigasterisk.com', '10.2.0.1')
 
 if host.name in ['bang']:
     check('bang', '10.2.0.1')