This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dns [2015/01/09 18:01] 23.24.122.93 |
dns [2017/03/05 13:15] (current) |
||
|---|---|---|---|
| Line 21: | Line 21: | ||
| ====Conduct Initial configuration of the Guest==== | ====Conduct Initial configuration of the Guest==== | ||
| - | [[Debian Initial Config]] TODO: UPDATE (sudo, vim, tcpdump, dns-utils) (ssh configuration) | + | [[Debian Initial Config]] |
| If a second VIF was added, edit /etc/network/interfaces to apply correctly and bring up the second interface. | If a second VIF was added, edit /etc/network/interfaces to apply correctly and bring up the second interface. | ||
| Line 127: | Line 127: | ||
| imap IN CNAME smtp | imap IN CNAME smtp | ||
| www IN A 10.1.1.0 | www IN A 10.1.1.0 | ||
| - | linode IN A 173.230.138.199 | ||
| - | |||
| - | IN TXT "v=spf1 a -all" | ||
| - | mail._domainkey IN TXT "v=DKIM1; k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDSnUNq0hFgLle0zxO2RGj6505UhKs8ASXS1fh5uSEmPkHlsUcw2VK3SqofonHs3CGIEfuSNI/lZyaZbRdXai43zde5+/WbP/2w6zJhEb/sNxBoCMsjoSiHxjGHLzJZ0/IlyAF6QM+U6g9bQwaiho/WS/7gzpzCGPU0zZYpLD+gfwIDAQAB" | ||
| - | </file> | ||
| - | |||
| - | |||
| - | <file txt twelvetacos.com (internal)> | ||
| - | $TTL 2d | ||
| - | $ORIGIN twelvetacos.com. | ||
| - | @ IN SOA ns1.twelvetacos.com. admin.twelvetacos.com. ( | ||
| - | 2015010800 ; se = serial number | ||
| - | 12h ; ref = refresh | ||
| - | 15m ; ret = update retry | ||
| - | 3w ; ex = expiry | ||
| - | 3h ; min = minimum | ||
| - | ) | ||
| - | IN NS ns1.twelvetacos.com. | ||
| - | IN MX 10 smtp.twelvetacos.com. | ||
| - | |||
| - | IN A 10.1.1.32 | ||
| - | ns1 IN A 10.1.1.1 | ||
| - | smtp IN A 10.1.1.16 | ||
| - | imap IN CNAME smtp | ||
| - | www IN A 10.1.1.32 | ||
| linode IN A 173.230.138.199 | linode IN A 173.230.138.199 | ||
| Line 232: | Line 207: | ||
| file "localhost.rev"; | file "localhost.rev"; | ||
| }; | }; | ||
| + | </file> | ||
| + | |||
| + | |||
| + | <file txt twelvetacos.com (internal)> | ||
| + | $TTL 2d | ||
| + | $ORIGIN twelvetacos.com. | ||
| + | @ IN SOA ns1.twelvetacos.com. admin.twelvetacos.com. ( | ||
| + | 2015010800 ; se = serial number | ||
| + | 12h ; ref = refresh | ||
| + | 15m ; ret = update retry | ||
| + | 3w ; ex = expiry | ||
| + | 3h ; min = minimum | ||
| + | ) | ||
| + | IN NS ns1.twelvetacos.com. | ||
| + | IN MX 10 smtp.twelvetacos.com. | ||
| + | |||
| + | IN A 10.1.1.32 | ||
| + | ns1 IN A 10.1.1.1 | ||
| + | smtp IN A 10.1.1.16 | ||
| + | imap IN CNAME smtp | ||
| + | www IN A 10.1.1.32 | ||
| + | linode IN A 173.230.138.199 | ||
| + | |||
| + | IN TXT "v=spf1 a -all" | ||
| + | mail._domainkey IN TXT "v=DKIM1; k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDSnUNq0hFgLle0zxO2RGj6505UhKs8ASXS1fh5uSEmPkHlsUcw2VK3SqofonHs3CGIEfuSNI/lZyaZbRdXai43zde5+/WbP/2w6zJhEb/sNxBoCMsjoSiHxjGHLzJZ0/IlyAF6QM+U6g9bQwaiho/WS/7gzpzCGPU0zZYpLD+gfwIDAQAB" | ||
| + | </file> | ||
| + | |||
| + | |||
| + | <file txt update.sh> | ||
| + | new_ip=$(wget -qO - linode.twelvetacos.com/ip.php) | ||
| + | old_ip=$(sed -n -e '/Last known public ip:/{s/.*: //p}' /etc/named.conf) | ||
| + | |||
| + | if [ "$old_ip" != "$new_ip" ] | ||
| + | then | ||
| + | sed -i "s/$old_ip/$new_ip/" /etc/named.conf | ||
| + | fi | ||
| </file> | </file> | ||