Skip to content

Instantly share code, notes, and snippets.

View aschmidt75's full-sized avatar

Andreas Schmidt aschmidt75

View GitHub Profile
@jhrcz
jhrcz / README.md
Last active October 1, 2016 17:08
This is a quick hack for generating part of /etc/hosts to be used with dnsmasq to provide vmid specific dns names for vms running on opennebula. vm with id 456 will have dns record 456.vms.mydomain.local pointing to correct IP. in my test environment, used for generating /etc/host (prepending /etc/hosts.template) from cron to feed dnsmasq ;o)

opennebula addon for dynamic per-vm dns names

this tool allows to have delegated dns domain to opennebula with dns names for every vm.

vm dns names with vmid look like 3456.vms.my.domain.int. additionaly, there are dns names based on vm name with truncated suffix with vmid. this has sideefect for vms with the same base name - it allow having round robin ballancing.

currently we use /etc/hosts.dnsmasq to not interferre with system /etc/hosts. using hosts file has some drawbacks, like nonexistent wildcards.

sample usage

@denji
denji / golang-tls.md
Last active July 30, 2024 07:43 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)