Skip to main content

.ch Zonefile

Open Data @Switch
Some blog post with instructions

# filename ch_zonedata.key
key tsig-zonedata-ch-public-21-01 {
    algorithm hmac-sha512;
    secret "stZwEGApYumtXkh73qMLPqfbIDozWKZLkqRvcjKSpRnsor6A6MxixRL6C2HeSVBQNfMW4wer+qjS0ZSfiWiJ3Q==";
};

dig -k ch_zonedata.key @zonedata.switch.ch +noall +answer +noidnout +onesoa AXFR ch. > ch.txt

This gives a lot of non-unique lines. If you need just a list of domain names, then this:

cat ch.txt | cut -f1 | uniq > ch.uniq.txt