INPUT
bix.hu. 42433 IN A 193.239.149.1
bix.hu. 42433 IN MX 10 deneb.iszt.hu.
bix.hu. 42433 IN NS ns.iszt.hu.
bix.hu. 42433 IN NS ns.iszt.hu.
bix.hu. 42433 IN NS ns-s.nic.hu.
bix.hu. 42433 IN NS ns-s.nic.hu.
bix.hu. 42433 IN SOA ns.iszt.hu. hostmaster.iszt.hu. 2011053000 28800 7200 604800 14400
OUTPUT
bix.hu. IN A 193.239.149.1
bix.hu. IN MX 10 deneb.iszt.hu.
bix.hu. IN NS ns.iszt.hu.
bix.hu. IN NS ns.iszt.hu.
bix.hu. IN NS ns-s.nic.hu.
bix.hu. IN NS ns-s.nic.hu.
bix.hu. IN SOA ns.iszt.hu. hostmaster.iszt.hu. 2011053000 28800 7200 604800 14400
using bash, sed, awk, etc. How??
actually it's just an output from:
dig -t any bix.hu | egrep -v "^;;|^;|^$" | sort
I just don't want the TTL column.. [because I want to sha256sum the output, and in this way I can check that the DNS settings are modified or not, but if the TTL keeps decreasing it ruins the sha256sum] - it will be just a checker script..
