rmoriz (owner)

Fork Of

Revisions

gist: 217706 Download_button fork
public
Public Clone URL: git://gist.github.com/217706.git
Embed All Files: show embed
Bash #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# Save in your .bash_profile then: isreg domain.com
 
function isreg {
  dig soa $1 | grep ^$1
}
 
# examples:
#
# $ isreg moriz.com
# moriz.com. 38400 IN SOA ns1. hostmaster.moriz.de. 2008082401 10800 3600 604800 38400
 
# $ isreg asdasdasdasdas.com
# $