From 351e9fff7a6a0541c3b8017451fb15005572b76f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 2 Jan 2024 19:38:14 +0000 Subject: [PATCH] New DNS LDAP mail fixes for test --- lib/ldap.sh | 5 +---- lib/pdns.sh | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/ldap.sh b/lib/ldap.sh index 874957e..4410670 100644 --- a/lib/ldap.sh +++ b/lib/ldap.sh @@ -120,10 +120,7 @@ dn: uid=admin,ou=people,dc=federatedcomputer,dc=cloud givenName: admin sn: admin uid: admin -mail: admin@$DOMAIN -mailAlias: abuse@$DOMAIN -mailAlias: postmaster@$DOMAIN -mailAlias: hostmaster@$DOMAIN +mailAlias: admin@$DOMAIN cn: admin mailEnabled: true objectClass: person diff --git a/lib/pdns.sh b/lib/pdns.sh index d42ca2d..101c5e4 100644 --- a/lib/pdns.sh +++ b/lib/pdns.sh @@ -91,8 +91,8 @@ done # Create CNAME record for domain to www curl -X PATCH --data '{"rrsets": [ {"name": "*.$DOMAIN.", "type": "CNAME", "ttl": 86400, "changetype": "REPLACE", "records": [ {"content": "www.$DOMAIN.", "disabled": false } ] } ] }' -H 'X-API-Key: $PDNS_APIKEY' http://127.0.0.1:8081/api/v1/servers/localhost/zones/$DOMAIN. -pdnsutil add-record $DOMAIN @ NS ns1.$DOMAIN -pdnsutil add-record $DOMAIN @ NS ns2.$DOMAIN +#pdnsutil add-record $DOMAIN @ NS ns1.$DOMAIN +#pdnsutil add-record $DOMAIN @ NS ns2.$DOMAIN pdnsutil add-record $DOMAIN @ A 86400 $EXTERNALIP EOF chmod +x /federated/apps/pdns/data/root/createrecords.sh